remove PackageMetadata usage
This commit is contained in:
parent
2b771e41ed
commit
1ba57eb84c
@ -292,10 +292,6 @@ QString AbstractRunner::name() const
|
||||
return d->runnerDescription.name();
|
||||
}
|
||||
|
||||
if (d->package) {
|
||||
return d->package->metadata().name();
|
||||
}
|
||||
|
||||
return objectName();
|
||||
}
|
||||
|
||||
@ -305,10 +301,6 @@ QIcon AbstractRunner::icon() const
|
||||
return KIcon(d->runnerDescription.icon());
|
||||
}
|
||||
|
||||
if (d->package) {
|
||||
return KIcon(d->package->metadata().icon());
|
||||
}
|
||||
|
||||
return QIcon();
|
||||
}
|
||||
|
||||
@ -318,10 +310,6 @@ QString AbstractRunner::id() const
|
||||
return d->runnerDescription.pluginName();
|
||||
}
|
||||
|
||||
if (d->package) {
|
||||
return d->package->metadata().pluginName();
|
||||
}
|
||||
|
||||
return objectName();
|
||||
}
|
||||
|
||||
@ -331,10 +319,6 @@ QString AbstractRunner::description() const
|
||||
return d->runnerDescription.property("Comment").toString();
|
||||
}
|
||||
|
||||
if (d->package) {
|
||||
return d->package->metadata().description();
|
||||
}
|
||||
|
||||
return objectName();
|
||||
}
|
||||
|
||||
@ -464,7 +448,7 @@ void AbstractRunnerPrivate::setupScriptSupport()
|
||||
QString translationsPath = package->filePath("translations");
|
||||
if (!translationsPath.isEmpty()) {
|
||||
KGlobal::dirs()->addResourceDir("locale", translationsPath);
|
||||
KGlobal::locale()->insertCatalog(package->metadata().pluginName());
|
||||
KGlobal::locale()->insertCatalog(runnerDescription.pluginName());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user