kpackage structures: Use K_PLUGIN_CLASS_WITH_JSON directly

Task: https://phabricator.kde.org/T14542
wilder-5.24
Alexander Lohnau 5 years ago
parent 90ede05980
commit b640fbdc3e
  1. 2
      shell/packageplugins/layouttemplate/layouttemplate.cpp
  2. 2
      shell/packageplugins/lookandfeel/lookandfeel.cpp
  3. 2
      shell/packageplugins/qmlWallpaper/wallpaper.cpp
  4. 2
      shell/packageplugins/shell/shellpackage.cpp
  5. 2
      shell/packageplugins/wallpaperimages/wallpaperpackage.cpp

@ -29,6 +29,6 @@ void LayoutTemplatePackage::initPackage(KPackage::Package *package)
package->setRequired("mainscript", true);
}
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(LayoutTemplatePackage, "plasma-packagestructure-layouttemplate.json")
K_PLUGIN_CLASS_WITH_JSON(LayoutTemplatePackage, "plasma-packagestructure-layouttemplate.json")
#include "layouttemplate.moc"

@ -104,6 +104,6 @@ void LookAndFeelPackage::pathChanged(KPackage::Package *package)
}
}
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(LookAndFeelPackage, "plasma-packagestructure-lookandfeel.json")
K_PLUGIN_CLASS_WITH_JSON(LookAndFeelPackage, "plasma-packagestructure-lookandfeel.json")
#include "lookandfeel.moc"

@ -66,6 +66,6 @@ void QmlWallpaperPackage::initPackage(KPackage::Package *package)
package->addDirectoryDefinition("translations", QStringLiteral("locale"), i18n("Translations"));
}
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(QmlWallpaperPackage, "plasma-packagestructure-wallpaper.json")
K_PLUGIN_CLASS_WITH_JSON(QmlWallpaperPackage, "plasma-packagestructure-wallpaper.json")
#include "wallpaper.moc"

@ -97,6 +97,6 @@ void ShellPackage::pathChanged(KPackage::Package *package)
}
}
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(ShellPackage, "plasma-packagestructure-plasma-shell.json")
K_PLUGIN_CLASS_WITH_JSON(ShellPackage, "plasma-packagestructure-plasma-shell.json")
#include "shellpackage.moc"

@ -76,6 +76,6 @@ void WallpaperPackage::pathChanged(KPackage::Package *package)
guard = false;
}
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(WallpaperPackage, "plasma-packagestructure-wallpaperimages.json")
K_PLUGIN_CLASS_WITH_JSON(WallpaperPackage, "plasma-packagestructure-wallpaperimages.json")
#include "wallpaperpackage.moc"

Loading…
Cancel
Save