summaryrefslogtreecommitdiff
path: root/kodereviewer/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/app.py')
-rw-r--r--kodereviewer/app.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/kodereviewer/app.py b/kodereviewer/app.py
index bb1080f..e188923 100644
--- a/kodereviewer/app.py
+++ b/kodereviewer/app.py
@@ -3,13 +3,14 @@
import os
import sys
import signal
-import gettext
+import logging
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 rich.logging import RichHandler
from kodereviewer.data import PullRequest
from kodereviewer.models.file import FileModel
@@ -18,8 +19,7 @@ from kodereviewer.models import (
CommentModel, TreeFileModel, LabelModel, LineModel, PullRequestModel,
ProjectModel, ReviewerModel, ReviewModel
)
-import logging
-from rich.logging import RichHandler
+from kodereviewer.review import ReviewHelper
FORMAT = "%(message)s"
logging.basicConfig(
@@ -64,6 +64,7 @@ def main():
qmlRegisterType(NetworkManager, "org.deprecated.kodereviewer", 1, 0, "NetworkManager")
qmlRegisterType(PullRequest, "org.deprecated.kodereviewer", 1, 0, "PullRequest")
+ qmlRegisterType(ReviewHelper, "org.deprecated.kodereviewer", 1, 0, "ReviewHelper")
localized_context = KLocalizedContext()
engine.rootContext().setContextObject(localized_context)