From 485ffc99609194a6a8ce33c5cf9d5ed4e6f477c7 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Wed, 9 Oct 2024 07:23:47 -0300 Subject: Use org.kde.desktop style --- kodereviewer/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kodereviewer') diff --git a/kodereviewer/app.py b/kodereviewer/app.py index ad019a4..204b73e 100644 --- a/kodereviewer/app.py +++ b/kodereviewer/app.py @@ -8,6 +8,7 @@ from KI18n import KLocalizedContext, KLocalizedString from PySide6.QtGui import QGuiApplication from PySide6.QtCore import QUrl, QByteArray from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType +from PySide6.QtQuickControls2 import QQuickStyle from kodereviewer.models.file import FileModel from kodereviewer.network_manager import NetworkManager @@ -38,7 +39,8 @@ def main(): """Needed to get proper KDE style outside of Plasma""" if not os.environ.get("QT_QUICK_CONTROLS_STYLE"): - os.environ["QT_QUICK_CONTROLS_STYLE"] = "org.kde.desktop" + QQuickStyle.setStyle("org.kde.desktop") + qmlRegisterType(ProjectModel, "org.deprecated.kodereviewer", 1, 0, "ProjectModel") -- cgit v1.2.3-70-g09d2