support for setting a wallpaper trough drag and drop

wilder-5.14
Marco Martin 13 years ago
parent be3a85e7ea
commit 6398f0f99d
  1. 2
      containmentconfigview.cpp
  2. 2
      shellpluginloader.cpp

@ -52,7 +52,7 @@ ContainmentConfigView::ContainmentConfigView(Plasma::Containment *cont, QWindow
engine()->rootContext()->setContextProperty("configDialog", this);
setCurrentWallpaper(cont->containment()->wallpaper());
Plasma::Package pkg = Plasma::PluginLoader::self()->loadPackage("Plasma/QmlWallpaper");
Plasma::Package pkg = Plasma::PluginLoader::self()->loadPackage("Plasma/Wallpaper");
pkg.setPath(m_containment->wallpaper());
QFile file(pkg.filePath("config", "main.xml"));
KConfigGroup cfg = m_containment->config();

@ -38,7 +38,7 @@ Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFor
if (packageFormat.endsWith("/LookAndFeel")) {
Plasma::PackageStructure *structure = new LookAndFeelPackage();
return Plasma::Package(structure);
} else if (packageFormat.endsWith("/QmlWallpaper")) {
} else if (packageFormat.endsWith("/Wallpaper")) {
Plasma::PackageStructure *structure = new QmlWallpaperPackage();
return Plasma::Package(structure);
} else {

Loading…
Cancel
Save