diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-09 07:23:47 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-09 07:23:47 -0300 |
commit | 485ffc99609194a6a8ce33c5cf9d5ed4e6f477c7 (patch) | |
tree | 003ed2681018abba3925fcdce5d870ac7dedf529 | |
parent | 39349a7e1e4fbb16e4a71d7f741b0725e73caeb7 (diff) | |
download | kodereviewer-485ffc99609194a6a8ce33c5cf9d5ed4e6f477c7.tar.gz |
Use org.kde.desktop style
-rw-r--r-- | kodereviewer/app.py | 4 |
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") |