qmlfrontend/main.cpp
branchqmlfrontend
changeset 12860 e33bcb9d5e9c
parent 12857 90f927b4b9e1
--- a/qmlfrontend/main.cpp	Sun Dec 24 16:56:22 2017 +0100
+++ b/qmlfrontend/main.cpp	Mon Dec 25 00:58:47 2017 +0100
@@ -3,15 +3,18 @@
 
 #include "hwengine.h"
 
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
 {
-  QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-  QGuiApplication app(argc, argv);
+    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+    QGuiApplication app(argc, argv);
+
+    QQmlApplicationEngine engine;
 
-  QQmlApplicationEngine engine;
-  engine.load(QUrl(QLatin1String("qrc:/main.qml")));
-  if (engine.rootObjects().isEmpty())
-    return -1;
+    HWEngine::exposeToQML();
 
-  return app.exec();
+    engine.load(QUrl(QLatin1String("qrc:/main.qml")));
+    if (engine.rootObjects().isEmpty())
+        return -1;
+
+    return app.exec();
 }