From a31ba03fafa82058eb01e8b89e15112c89977989 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 10 Apr 2022 19:01:18 +0200 Subject: [PATCH] applets/systemmonitor: Use KPluginMetaData of Applet directly instead of using KPackage's --- applets/systemmonitor/systemmonitor/systemmonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/systemmonitor/systemmonitor/systemmonitor.cpp b/applets/systemmonitor/systemmonitor/systemmonitor.cpp index 0ab924a92..40cf09e52 100644 --- a/applets/systemmonitor/systemmonitor/systemmonitor.cpp +++ b/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();