From 2ef76e8acee23c344335b0118aadd5de96a7dfff Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 4 Nov 2024 09:31:26 -0300 Subject: [WIP] Add review functionality --- kodereviewer/app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kodereviewer/app.py') 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) -- cgit v1.2.3-70-g09d2