summaryrefslogtreecommitdiff
path: root/kodereviewer/app.py
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2024-11-04 09:31:26 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2024-11-24 11:21:41 -0300
commit2ef76e8acee23c344335b0118aadd5de96a7dfff (patch)
tree1eb1fa059ddf07d00834f569611f1ca2e33a961a /kodereviewer/app.py
parent45f03bfb30ea29dd62c0aba3fbe0c002dcdc807a (diff)
downloadkodereviewer-2ef76e8acee23c344335b0118aadd5de96a7dfff.tar.gz
[WIP] Add review functionalitytranslationsmain
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)