summaryrefslogtreecommitdiff
path: root/kodereviewer/app.py
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2024-10-30 16:27:05 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2024-10-30 17:49:36 -0300
commit10d04e65085712fe9206c08ac9600109a4bcfc8e (patch)
tree9d501981276d6fab599eb5482470d5f3501b6b32 /kodereviewer/app.py
parentd46b4e7470e3115df34fc96ba2f8e59974f713be (diff)
downloadkodereviewer-10d04e65085712fe9206c08ac9600109a4bcfc8e.tar.gz
Add review changes dialog to new structuremain
Diffstat (limited to 'kodereviewer/app.py')
-rw-r--r--kodereviewer/app.py3
1 files changed, 3 insertions, 0 deletions
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__))