summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kodereviewer/app.py4
1 files changed, 3 insertions, 1 deletions
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")