PluginLoader API changes
This commit is contained in:
parent
35898d57f1
commit
ca860417c9
@ -43,10 +43,11 @@
|
|||||||
|
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
|
||||||
#include "plasma/package.h"
|
#include "package.h"
|
||||||
#include "plasma/private/dataengineconsumer_p.h"
|
#include "pluginloader.h"
|
||||||
#include "plasma/private/packages_p.h"
|
#include "private/dataengineconsumer_p.h"
|
||||||
#include "plasma/private/wallpaper_p.h"
|
#include "private/packages_p.h"
|
||||||
|
#include "private/wallpaper_p.h"
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
@ -443,7 +444,7 @@ WallpaperPrivate::WallpaperPrivate(KService::Ptr service, Wallpaper *wallpaper)
|
|||||||
if (!api.isEmpty()) {
|
if (!api.isEmpty()) {
|
||||||
const QString path = KStandardDirs::locate("data",
|
const QString path = KStandardDirs::locate("data",
|
||||||
"plasma/wallpapers/" + wallpaperDescription.pluginName() + '/');
|
"plasma/wallpapers/" + wallpaperDescription.pluginName() + '/');
|
||||||
package = new Package(Package::load("Plasma/Wallpaper", api));
|
package = new Package(PluginLoader::self()->loadPackage("Plasma/Wallpaper", api));
|
||||||
package->setPath(path);
|
package->setPath(path);
|
||||||
|
|
||||||
if (package->isValid()) {
|
if (package->isValid()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user