|
@@ -10,6 +10,7 @@
|
|
#include <gitbranch.h>
|
|
#include <gitbranch.h>
|
|
#include <commitmodel.h>
|
|
#include <commitmodel.h>
|
|
#include <graphpoint.h>
|
|
#include <graphpoint.h>
|
|
|
|
+#include <graphlistmodel.h>
|
|
#include <commitgraph.h>
|
|
#include <commitgraph.h>
|
|
#include <gittag.h>
|
|
#include <gittag.h>
|
|
#include <gitdiff.h>
|
|
#include <gitdiff.h>
|
|
@@ -25,6 +26,7 @@ int main(int argc, char *argv[])
|
|
qmlRegisterUncreatableType<CommitModel>("org.semlanik.nicegit", 1, 0, "CommitModel", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<CommitModel>("org.semlanik.nicegit", 1, 0, "CommitModel", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<CommitGraph>("org.semlanik.nicegit", 1, 0, "CommitGraph", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<CommitGraph>("org.semlanik.nicegit", 1, 0, "CommitGraph", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GraphPoint>("org.semlanik.nicegit", 1, 0, "GraphPoint", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GraphPoint>("org.semlanik.nicegit", 1, 0, "GraphPoint", "Owned only by GitHandler");
|
|
|
|
+ qmlRegisterUncreatableType<GraphListModel>("org.semlanik.nicegit", 1, 0, "GraphListModel", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<RepositoryModel>("org.semlanik.nicegit", 1, 0, "RepositoryModel", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<RepositoryModel>("org.semlanik.nicegit", 1, 0, "RepositoryModel", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GitRepository>("org.semlanik.nicegit", 1, 0, "GitRepository", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GitRepository>("org.semlanik.nicegit", 1, 0, "GitRepository", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GitBranch>("org.semlanik.nicegit", 1, 0, "GitBranch", "Owned only by GitHandler");
|
|
qmlRegisterUncreatableType<GitBranch>("org.semlanik.nicegit", 1, 0, "GitBranch", "Owned only by GitHandler");
|
|
@@ -35,7 +37,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
GitHandler handler;
|
|
GitHandler handler;
|
|
- handler.open("/home/semlanik/Projects/HCAT/hmi_hcat/demo/default/HCAT/");
|
|
|
|
|
|
+// handler.open("/home/semlanik/Projects/HCAT/hmi_hcat/demo/default/HCAT/");
|
|
view.rootContext()->setContextProperty("_handler", &handler);
|
|
view.rootContext()->setContextProperty("_handler", &handler);
|
|
view.setSource(QUrl("qrc:/qml/MainView.qml"));
|
|
view.setSource(QUrl("qrc:/qml/MainView.qml"));
|
|
view.setResizeMode(QQuickView::SizeRootObjectToView);
|
|
view.setResizeMode(QQuickView::SizeRootObjectToView);
|