summaryrefslogtreecommitdiffstats
path: root/sample/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sample/app/main.cpp')
-rw-r--r--sample/app/main.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/sample/app/main.cpp b/sample/app/main.cpp
index 69642dc..399a5c9 100644
--- a/sample/app/main.cpp
+++ b/sample/app/main.cpp
@@ -21,7 +21,6 @@
#include <QtQml/QQmlApplicationEngine>
#include <QtQuickControls2/QQuickStyle>
#include <QtQuick/QQuickWindow>
-#include <QtCore/QDir>
#include "eventhandler.h"
@@ -57,18 +56,12 @@ int main(int argc, char *argv[])
EventHandler *eventHandler = new EventHandler();
eventHandler->init(port, secret.toStdString().c_str());
engine.rootContext()->setContextProperty("eventHandler", eventHandler);
- QString qmldir = QCoreApplication::applicationDirPath();
- qmldir.replace(QString("bin"), QString("qml"));
- qmldir.append('/');
- qDebug() << "####qmldir=" << qmldir;
- engine.rootContext()->setContextProperty("qmldir", qmldir);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty()) {
HMI_DEBUG(APP_ID, "Fatal Error, rootObject is empty!");
return -1;
}
- qDebug() << "####" << QDir::currentPath() << QCoreApplication::applicationDirPath();
QObject *root = engine.rootObjects().first();
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);