mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: support only desktop plasmoid packages
This commit is contained in:
parent
bbcc925269
commit
844c25a831
1 changed files with 3 additions and 13 deletions
|
@ -30,9 +30,6 @@
|
|||
#include <klocale.h>
|
||||
#include <kmessagebox.h>
|
||||
|
||||
|
||||
#include "kdeclarative.h"
|
||||
|
||||
#include "private/wallpaper_p.h"
|
||||
|
||||
namespace Plasma
|
||||
|
@ -41,16 +38,9 @@ namespace Plasma
|
|||
PlasmoidPackage::PlasmoidPackage(QObject *parent)
|
||||
: Plasma::PackageStructure(parent, QString("Plasmoid"))
|
||||
{
|
||||
QStringList platform = KDeclarative::runtimePlatform();
|
||||
if (!platform.isEmpty()) {
|
||||
QMutableStringListIterator it(platform);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
it.setValue("platformcontents/" + it.value());
|
||||
}
|
||||
platform.append("contents");
|
||||
setContentsPrefixPaths(platform);
|
||||
}
|
||||
QStringList platform;
|
||||
platform << "platformcontents/desktop" << "contents";
|
||||
setContentsPrefixPaths(platform);
|
||||
|
||||
addDirectoryDefinition("images", "images", i18n("Images"));
|
||||
addDirectoryDefinition("theme", "theme", i18n("Themed Images"));
|
||||
|
|
Loading…
Add table
Reference in a new issue