aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 5298d03..9eb9e40 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,15 +1,22 @@
+#include <QQmlContext>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
+#include "symedit.h"
+
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
+ SymEdit manager;
+
QQmlApplicationEngine engine;
+ engine.rootContext()->setContextProperty("manager", &manager);
+
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- if (engine.rootObjects().isEmpty())
+ if ( engine.rootObjects().isEmpty() )
return -1;
return app.exec();