diff --git a/components/mobileshell/CMakeLists.txt b/components/mobileshell/CMakeLists.txt index db0fcdda..83841061 100644 --- a/components/mobileshell/CMakeLists.txt +++ b/components/mobileshell/CMakeLists.txt @@ -41,7 +41,6 @@ target_link_libraries(mobileshellplugin Qt::Qml Qt::Gui Qt::Quick - KF6::ConfigWidgets # for KStandardAction KF6::KIOGui Plasma::Plasma KF6::I18n @@ -51,6 +50,7 @@ target_link_libraries(mobileshellplugin KF6::KIOWidgets # for PreviewJob KF6::Service KF6::Package + KF6::ConfigGui LayerShellQt::Interface ) diff --git a/components/mobileshell/notifications/notificationfilemenu.cpp b/components/mobileshell/notifications/notificationfilemenu.cpp index 0f0fdd8d..eab91a0b 100644 --- a/components/mobileshell/notifications/notificationfilemenu.cpp +++ b/components/mobileshell/notifications/notificationfilemenu.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include @@ -147,7 +147,7 @@ void NotificationFileMenu::open(int x, int y) auto *job = new KIO::DeleteOrTrashJob(urls, KIO::AskUserActionInterface::Trash, KIO::AskUserActionInterface::DefaultConfirmation, this); job->start(); }; - auto moveToTrashAction = KStandardAction::moveToTrash(this, moveToTrashLambda, menu); + auto moveToTrashAction = KStandardActions::moveToTrash(this, moveToTrashLambda, menu); moveToTrashAction->setShortcut({}); // Can't focus notification to press Delete menu->addAction(moveToTrashAction); } @@ -162,7 +162,7 @@ void NotificationFileMenu::open(int x, int y) auto *job = new KIO::DeleteOrTrashJob(urls, KIO::AskUserActionInterface::Delete, KIO::AskUserActionInterface::DefaultConfirmation, this); job->start(); }; - auto deleteAction = KStandardAction::deleteFile(this, deleteLambda, menu); + auto deleteAction = KStandardActions::deleteFile(this, deleteLambda, menu); deleteAction->setShortcut({}); menu->addAction(deleteAction); }