diff --git a/CMakeLists.txt b/CMakeLists.txt index 5787d666d..9851d0faf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ if (SAILFISHOS) set(KF5_MIN_VERSION "5.36.0") set(QT_MIN_VERSION "5.6.0") else() - set(KF5_MIN_VERSION "5.89.0") + set(KF5_MIN_VERSION "5.95.0") set(QT_MIN_VERSION "5.10.0") set(KDE_COMPILERSETTINGS_LEVEL "5.84.0") endif() diff --git a/settings/main.cpp b/settings/main.cpp index 5429213da..d072eadd3 100644 --- a/settings/main.cpp +++ b/settings/main.cpp @@ -46,6 +46,16 @@ int main(int argc, char** argv) dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); + QObject::connect(&dbusService, &KDBusService::activateRequested, dialog, [dialog](const QStringList &args, const QString &/*workingDir*/) { + + QCommandLineParser parser; + parser.addOption(QCommandLineOption(QStringLiteral("args"), i18n("Arguments for the config module"), QStringLiteral("args"))); + parser.parse(args); + + dialog->clear(); + dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")), {parser.value(QStringLiteral("args"))}); + }); + app.setQuitOnLastWindowClosed(true); return app.exec();