From bacfccd323bfe9c7cdef3800bcafde6ccdc63c76 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sat, 19 Jun 2021 06:52:49 +0200 Subject: [PATCH] applets: Use K_PLUGIN_CLASS_WITH_JSON instead of K_EXPORT_PLASMA_APPLET_WITH_JSON Task: https://phabricator.kde.org/T14542 --- containments/homescreen/homescreen.cpp | 2 +- containments/panel/phonepanel.cpp | 2 +- containments/taskpanel/taskpanel.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containments/homescreen/homescreen.cpp b/containments/homescreen/homescreen.cpp index f3c72f9a..f4d68994 100644 --- a/containments/homescreen/homescreen.cpp +++ b/containments/homescreen/homescreen.cpp @@ -42,6 +42,6 @@ void HomeScreen::stackAfter(QQuickItem *item1, QQuickItem *item2) item1->stackAfter(item2); } -K_EXPORT_PLASMA_APPLET_WITH_JSON(homescreen, HomeScreen, "metadata.json") +K_PLUGIN_CLASS_WITH_JSON(HomeScreen, "metadata.json") #include "homescreen.moc" diff --git a/containments/panel/phonepanel.cpp b/containments/panel/phonepanel.cpp index 06aab12f..79c7c657 100644 --- a/containments/panel/phonepanel.cpp +++ b/containments/panel/phonepanel.cpp @@ -202,6 +202,6 @@ bool PhonePanel::isSystem24HourFormat() return timeFormat == QStringLiteral(FORMAT24H); } -K_EXPORT_PLASMA_APPLET_WITH_JSON(quicksettings, PhonePanel, "metadata.json") +K_PLUGIN_CLASS_WITH_JSON(PhonePanel, "metadata.json") #include "phonepanel.moc" diff --git a/containments/taskpanel/taskpanel.cpp b/containments/taskpanel/taskpanel.cpp index e469f8c1..d7742ff2 100644 --- a/containments/taskpanel/taskpanel.cpp +++ b/containments/taskpanel/taskpanel.cpp @@ -206,6 +206,6 @@ void TaskPanel::closeActiveWindow() } } -K_EXPORT_PLASMA_APPLET_WITH_JSON(taskpanel, TaskPanel, "metadata.json") +K_PLUGIN_CLASS_WITH_JSON(TaskPanel, "metadata.json") #include "taskpanel.moc"