applets/systemmonitor: Use KPluginMetaData of Applet directly instead of using KPackage's

wilder-5.25
Alexander Lohnau 4 years ago
parent 2ca0b37830
commit a31ba03faf
  1. 2
      applets/systemmonitor/systemmonitor/systemmonitor.cpp

@ -45,7 +45,7 @@ void SystemMonitor::init()
// NOTE: taking the pluginId this way, we take it from the child applet (cpu monitor, memory, whatever) rather than the parent fallback applet
// (systemmonitor)
const QString pluginId = kPackage().metadata().pluginId();
const QString pluginId = pluginMetaData().pluginId();
// FIXME HACK: better way to get the engine At least AppletQuickItem should have an engine() getter
KDeclarative::QmlObjectSharedEngine *qmlObject = new KDeclarative::QmlObjectSharedEngine();

Loading…
Cancel
Save