From 10d04e65085712fe9206c08ac9600109a4bcfc8e Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Wed, 30 Oct 2024 16:27:05 -0300 Subject: Add review changes dialog to new structure --- kodereviewer/app.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kodereviewer/app.py') diff --git a/kodereviewer/app.py b/kodereviewer/app.py index 1eeb241..eb196d1 100644 --- a/kodereviewer/app.py +++ b/kodereviewer/app.py @@ -10,6 +10,7 @@ from PySide6.QtCore import QUrl, QByteArray from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType from PySide6.QtQuickControls2 import QQuickStyle +from kodereviewer.data import PullRequest from kodereviewer.models.file import FileModel from kodereviewer.network_manager import NetworkManager from kodereviewer.models import ( @@ -57,6 +58,8 @@ def main(): qmlRegisterType(ReviewModel, "org.deprecated.kodereviewer", 1, 0, "ReviewModel") qmlRegisterType(NetworkManager, "org.deprecated.kodereviewer", 1, 0, "NetworkManager") + qmlRegisterType(PullRequest, "org.deprecated.kodereviewer", 1, 0, "PullRequest") + localized_context = KLocalizedContext() engine.rootContext().setContextObject(localized_context) base_path = os.path.abspath(os.path.dirname(__file__)) -- cgit v1.2.3-70-g09d2