layout template support
svn path=/trunk/KDE/kdebase/runtime/; revision=1119913
This commit is contained in:
parent
9367040052
commit
90f6563936
@ -91,7 +91,7 @@ int main(int argc, char **argv)
|
|||||||
ki18nc("theme, wallpaper, etc. are keywords, but they may be translated, as both versions "
|
ki18nc("theme, wallpaper, etc. are keywords, but they may be translated, as both versions "
|
||||||
"are recognized by the application "
|
"are recognized by the application "
|
||||||
"(if translated, should be same as messages with 'package type' context below)",
|
"(if translated, should be same as messages with 'package type' context below)",
|
||||||
"The type of package, e.g. theme, wallpaper, plasmoid, dataengine, runner, etc."),
|
"The type of package, e.g. theme, wallpaper, plasmoid, dataengine, runner, layout-template, etc."),
|
||||||
"plasmoid");
|
"plasmoid");
|
||||||
options.add("s");
|
options.add("s");
|
||||||
options.add("i");
|
options.add("i");
|
||||||
@ -177,6 +177,10 @@ int main(int argc, char **argv)
|
|||||||
packageRoot = "plasma/wallpapers/";
|
packageRoot = "plasma/wallpapers/";
|
||||||
servicePrefix = "plasma-wallpaper-";
|
servicePrefix = "plasma-wallpaper-";
|
||||||
pluginTypes << "Wallpaper";
|
pluginTypes << "Wallpaper";
|
||||||
|
} else if (type == i18nc("package type", "layout-template") || type == "layout-template") {
|
||||||
|
packageRoot = "plasma/layout-templates/";
|
||||||
|
servicePrefix = "plasma-layout-";
|
||||||
|
pluginTypes << "LayoutTemplate";
|
||||||
} else {
|
} else {
|
||||||
QString constraint = QString("'%1' == [X-KDE-PluginInfo-Name]").arg(packageRoot);
|
QString constraint = QString("'%1' == [X-KDE-PluginInfo-Name]").arg(packageRoot);
|
||||||
KService::List offers = KServiceTypeTrader::self()->query("Plasma/PackageStructure", constraint);
|
KService::List offers = KServiceTypeTrader::self()->query("Plasma/PackageStructure", constraint);
|
||||||
|
Loading…
Reference in New Issue
Block a user