diff options
Diffstat (limited to 'kodereviewer/app.py')
-rw-r--r-- | kodereviewer/app.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kodereviewer/app.py b/kodereviewer/app.py index a2eb5f4..430b5cf 100644 --- a/kodereviewer/app.py +++ b/kodereviewer/app.py @@ -9,10 +9,8 @@ from PySide6.QtGui import QGuiApplication from PySide6.QtCore import QUrl, QByteArray from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType -from kodereviewer.mdconverter import MdConverter -from kodereviewer.project_model import ProjectModel -from kodereviewer.pull_request_model import PullRequestModel from kodereviewer.network_manager import NetworkManager +from kodereviewer.models import CommentModel, PullRequestModel, ProjectModel def main(): @@ -34,8 +32,9 @@ def main(): if not os.environ.get("QT_QUICK_CONTROLS_STYLE"): os.environ["QT_QUICK_CONTROLS_STYLE"] = "org.kde.desktop" - qmlRegisterType(MdConverter, "org.deprecated.kodereviewer", 1, 0, "MdConverter") qmlRegisterType(ProjectModel, "org.deprecated.kodereviewer", 1, 0, "ProjectModel") + + qmlRegisterType(CommentModel, "org.deprecated.kodereviewer", 1, 0, "CommentModel") qmlRegisterType(PullRequestModel, "org.deprecated.kodereviewer", 1, 0, "PullRequestModel") qmlRegisterType(NetworkManager, "org.deprecated.kodereviewer", 1, 0, "NetworkManager") @@ -43,6 +42,7 @@ def main(): engine.rootContext().setContextObject(localized_context) base_path = os.path.abspath(os.path.dirname(__file__)) engine.addImportPath(f"file://{base_path}/qml") + engine.addImportPath(f"file://{base_path}/qml/delegates") url = QUrl(f"file://{base_path}/qml/Main.qml") engine.load(url) |