diff --git a/CMakeLists.txt b/CMakeLists.txt index 012a2a9d..7b8ea595 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ include(CheckIncludeFiles) plasma_install_package(look-and-feel org.kde.plasma.phone look-and-feel) plasma_install_package(shell org.kde.plasma.phoneshell shells) -install(FILES plasma_phone_components.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR}) +install(FILES plasma_phone_components.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR}) add_subdirectory(bin) add_subdirectory(containments) diff --git a/components/mmplugin/CMakeLists.txt b/components/mmplugin/CMakeLists.txt index b90b8c47..e8519c2d 100644 --- a/components/mmplugin/CMakeLists.txt +++ b/components/mmplugin/CMakeLists.txt @@ -8,7 +8,7 @@ target_sources(ppc-mmqmlplugin PRIVATE ) target_link_libraries(ppc-mmqmlplugin - Qt5::Qml + Qt::Qml KF5::ModemManagerQt KF5::NetworkManagerQt ) diff --git a/components/mmplugin/signalindicator.h b/components/mmplugin/signalindicator.h index a522530b..5988e45d 100644 --- a/components/mmplugin/signalindicator.h +++ b/components/mmplugin/signalindicator.h @@ -5,7 +5,7 @@ #pragma once #include -#include +#include #include #include diff --git a/components/mobileshell/homescreen/applicationlistmodel.cpp b/components/mobileshell/homescreen/applicationlistmodel.cpp index 5a46b096..3be02683 100644 --- a/components/mobileshell/homescreen/applicationlistmodel.cpp +++ b/components/mobileshell/homescreen/applicationlistmodel.cpp @@ -31,7 +31,6 @@ #include #include -#include constexpr int MAX_FAVOURITES = 5; diff --git a/components/mobileshell/homescreen/applicationlistmodel.h b/components/mobileshell/homescreen/applicationlistmodel.h index fa610ecd..45bf619f 100644 --- a/components/mobileshell/homescreen/applicationlistmodel.h +++ b/components/mobileshell/homescreen/applicationlistmodel.h @@ -8,6 +8,7 @@ #pragma once // Qt +#include #include #include #include @@ -25,11 +26,6 @@ class PlasmaWindow; } } -namespace PlasmaQuick -{ -class AppletQuickItem; -} - class ApplicationListModel; class ApplicationListModel : public QAbstractListModel diff --git a/containments/homescreen/homescreen.cpp b/containments/homescreen/homescreen.cpp index 5688b92e..a2da679f 100644 --- a/containments/homescreen/homescreen.cpp +++ b/containments/homescreen/homescreen.cpp @@ -10,8 +10,8 @@ #include #include -HomeScreen::HomeScreen(QObject *parent, const QVariantList &args) - : Plasma::Containment(parent, args) +HomeScreen::HomeScreen(QObject *parent, const KPluginMetaData &data, const QVariantList &args) + : Plasma::Containment(parent, data, args) { setHasConfigurationInterface(true); connect(KWindowSystem::self(), &KWindowSystem::showingDesktopChanged, this, &HomeScreen::showingDesktopChanged); diff --git a/containments/homescreen/homescreen.h b/containments/homescreen/homescreen.h index be9ee6f6..b202a124 100644 --- a/containments/homescreen/homescreen.h +++ b/containments/homescreen/homescreen.h @@ -14,7 +14,7 @@ class HomeScreen : public Plasma::Containment Q_PROPERTY(bool showingDesktop READ showingDesktop WRITE setShowingDesktop NOTIFY showingDesktopChanged) public: - HomeScreen(QObject *parent, const QVariantList &args); + HomeScreen(QObject *parent, const KPluginMetaData &data, const QVariantList &args); ~HomeScreen() override; void configChanged() override; diff --git a/containments/panel/phonepanel.cpp b/containments/panel/phonepanel.cpp index 106e73ba..f0aadf5e 100644 --- a/containments/panel/phonepanel.cpp +++ b/containments/panel/phonepanel.cpp @@ -7,8 +7,8 @@ #include "phonepanel.h" -PhonePanel::PhonePanel(QObject *parent, const QVariantList &args) - : Plasma::Containment(parent, args) +PhonePanel::PhonePanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args) + : Plasma::Containment(parent, data, args) { } diff --git a/containments/panel/phonepanel.h b/containments/panel/phonepanel.h index 276ad7b0..d880d2ed 100644 --- a/containments/panel/phonepanel.h +++ b/containments/panel/phonepanel.h @@ -14,7 +14,7 @@ class PhonePanel : public Plasma::Containment Q_OBJECT public: - PhonePanel(QObject *parent, const QVariantList &args); + PhonePanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args); ~PhonePanel() override; }; diff --git a/containments/taskpanel/taskpanel.cpp b/containments/taskpanel/taskpanel.cpp index 9a574368..8cc2737b 100644 --- a/containments/taskpanel/taskpanel.cpp +++ b/containments/taskpanel/taskpanel.cpp @@ -21,8 +21,8 @@ #include -TaskPanel::TaskPanel(QObject *parent, const QVariantList &args) - : Plasma::Containment(parent, args) +TaskPanel::TaskPanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args) + : Plasma::Containment(parent, data, args) { setHasConfigurationInterface(true); initWayland(); diff --git a/containments/taskpanel/taskpanel.h b/containments/taskpanel/taskpanel.h index 0909b7d9..30e81cdd 100644 --- a/containments/taskpanel/taskpanel.h +++ b/containments/taskpanel/taskpanel.h @@ -8,6 +8,7 @@ #define TASKPANEL_H #include +#include class OutputsModel; class QAbstractItemModel; @@ -31,7 +32,7 @@ class TaskPanel : public Plasma::Containment Q_PROPERTY(QWindow *panel READ panel WRITE setPanel NOTIFY panelChanged) public: - TaskPanel(QObject *parent, const QVariantList &args); + TaskPanel(QObject *parent, const KPluginMetaData &data, const QVariantList &args); QWindow *panel(); void setPanel(QWindow *panel); diff --git a/kcms/mobileshell/CMakeLists.txt b/kcms/mobileshell/CMakeLists.txt index 20d9a079..eba2d530 100644 --- a/kcms/mobileshell/CMakeLists.txt +++ b/kcms/mobileshell/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.0) project(mobileshellkcm) set(QT_MIN_VERSION "5.15.0") -set(KF5_MIN_VERSION "5.86.0") +set(KF5_MIN_VERSION "5.90.0") find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) @@ -15,7 +15,7 @@ include(KDEInstallDirs) include(KDECMakeSettings) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) -find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS +find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Quick Svg ) @@ -34,7 +34,7 @@ set(mobileshellsettings_SRCS add_library(kcm_mobileshell MODULE ${mobileshellsettings_SRCS}) target_link_libraries(kcm_mobileshell - Qt5::Core + Qt::Core KF5::CoreAddons KF5::KCMUtils KF5::I18n @@ -44,7 +44,7 @@ target_link_libraries(kcm_mobileshell kcoreaddons_desktop_to_json(kcm_mobileshell "package/metadata.desktop") install(TARGETS kcm_mobileshell DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) -install(FILES package/metadata.desktop RENAME kcm_mobileshell.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) # Install the desktop file +install(FILES package/metadata.desktop RENAME kcm_mobileshell.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR}) # Install the desktop file kpackage_install_package(package kcm_mobileshell kcms) # Install our QML kpackage. diff --git a/kcms/mobileshell/kcm.cpp b/kcms/mobileshell/kcm.cpp index 9441da03..4d98812e 100644 --- a/kcms/mobileshell/kcm.cpp +++ b/kcms/mobileshell/kcm.cpp @@ -12,7 +12,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMMobileShell, "metadata.json") KCMMobileShell::KCMMobileShell(QObject *parent, const KPluginMetaData &data, const QVariantList &args) : KQuickAddons::ManagedConfigModule(parent, data, args) { - setButtons(0); + setButtons({}); } #include "kcm.moc"