applets: Use K_PLUGIN_CLASS_WITH_JSON directly

Task: https://phabricator.kde.org/T14542
wilder-5.24
Alexander Lohnau 5 years ago
parent b640fbdc3e
commit 9a5f5124ea
  1. 2
      applets/appmenu/lib/appmenuapplet.cpp
  2. 2
      applets/calendar/calendarapplet.cpp
  3. 2
      applets/icon/iconapplet.cpp
  4. 2
      applets/notifications/notificationapplet.cpp
  5. 2
      applets/panelspacer/plugin/panelspacer.cpp
  6. 2
      applets/systemmonitor/systemmonitor/systemmonitor.cpp
  7. 2
      applets/systemtray/container/systemtraycontainer.cpp
  8. 2
      applets/systemtray/systemtray.cpp

@ -301,6 +301,6 @@ bool AppMenuApplet::eventFilter(QObject *watched, QEvent *event)
return false;
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(appmenu, AppMenuApplet, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(AppMenuApplet, "metadata.json")
#include "appmenuapplet.moc"

@ -37,6 +37,6 @@ int CalendarApplet::weekNumber(const QDateTime &dateTime) const
return dateTime.date().weekNumber();
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(calendar, CalendarApplet, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(CalendarApplet, "metadata.json")
#include "calendarapplet.moc"

@ -589,6 +589,6 @@ void IconApplet::setLocalPath(const QString &localPath)
config().writeEntry(QStringLiteral("localPath"), localPath);
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(icon, IconApplet, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(IconApplet, "metadata.json")
#include "iconapplet.moc"

@ -191,6 +191,6 @@ void NotificationApplet::forceActivateWindow(QWindow *window)
}
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(icon, NotificationApplet, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(NotificationApplet, "metadata.json")
#include "notificationapplet.moc"

@ -139,6 +139,6 @@ PlasmaQuick::AppletQuickItem *PanelSpacer::containmentGraphicObject() const
return containment()->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>();
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(panelspacer, PanelSpacer, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(PanelSpacer, "metadata.json")
#include "panelspacer.moc"

@ -100,6 +100,6 @@ void SystemMonitor::openSystemMonitor()
job->start();
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(systemmonitor, SystemMonitor, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(SystemMonitor, "metadata.json")
#include "systemmonitor.moc"

@ -153,6 +153,6 @@ QQuickItem *SystemTrayContainer::internalSystray()
return m_internalSystray;
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(systemtraycontainer, SystemTrayContainer, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(SystemTrayContainer, "metadata.json")
#include "systemtraycontainer.moc"

@ -379,6 +379,6 @@ void SystemTray::stopApplet(const QString &pluginId)
}
}
K_EXPORT_PLASMA_APPLET_WITH_JSON(systemtray, SystemTray, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(SystemTray, "metadata.json")
#include "systemtray.moc"

Loading…
Cancel
Save