[utilities/telly-skout] src: Use KirigamiAppDefaults
Plata Hill <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 68b12be0057a454b2c75f1c2b95442fe552444e8 by Plata Hill.
Committed on 26/07/2026 at 10:59.
Pushed by plata into branch 'master'.
Use KirigamiAppDefaults
M +1 -1 src/CMakeLists.txt
M +3 -4 src/main.cpp
https://invent.kde.org/utilities/telly-skout/-/commit/68b12be0057a454b2c75f1c2b95442fe552444e8
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f568de0..74282f6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,7 +66,7 @@ ecm_add_qml_module(telly-skout-app URI org.kde.TellySkout.app NO_RESOURCE_TARGET
)
target_include_directories(telly-skout-app PRIVATE ${CMAKE_BINARY_DIR})
-target_link_libraries(telly-skout-app PRIVATE telly-skoutplugin)
+target_link_libraries(telly-skout-app PRIVATE telly-skoutplugin KirigamiApp)
set_target_properties(telly-skout-app PROPERTIES RUNTIME_OUTPUT_NAME "telly-skout")
diff --git a/src/main.cpp b/src/main.cpp
index 05bd114..61d0966 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,6 +19,7 @@
#endif
#include <KLocalizedContext>
#include <KLocalizedString>
+#include <KirigamiAddons/App/KirigamiAppDefaults>
#include <QCommandLineParser>
#include <QIcon>
@@ -42,12 +43,8 @@ int main(int argc, char *argv[])
{
#ifdef Q_OS_ANDROID
QGuiApplication app(argc, argv);
- QQuickStyle::setStyle(QStringLiteral("org.kde.breeze"));
#else
QApplication app(argc, argv);
- if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
- QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
- }
#endif
#if HAVE_KCRASH
@@ -108,6 +105,8 @@ int main(int argc, char *argv[])
return ProgramId(str);
});
+ KirigamiAppDefaults::apply(&app);
+
// setup engine
QQmlApplicationEngine engine;
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));