X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Fmain.cpp;fp=sample%2Fapp%2Fmain.cpp;h=399a5c91b668ff9a51cdf5fe146d3170174c7fa2;hb=5e11084733c184b0505a4f4816e69b0dd363b653;hp=69642dce2f02599538b88b420ec14f2decb492fc;hpb=5ba4327b148f81852c6e2a53bc51ab07b238602e;p=apps%2Fonscreenapp.git 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 #include #include -#include #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(root);