aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/aglextras/hmi/aglapplication.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/aglextras/hmi/aglapplication.cpp b/src/aglextras/hmi/aglapplication.cpp
index 295c017..102a990 100644
--- a/src/aglextras/hmi/aglapplication.cpp
+++ b/src/aglextras/hmi/aglapplication.cpp
@@ -28,8 +28,10 @@
QT_BEGIN_NAMESPACE
-AGLApplicationPrivate::AGLApplicationPrivate (AGLApplication*)
+AGLApplicationPrivate::AGLApplicationPrivate (AGLApplication *app)
: binding_address(new QUrl)
+ , engine(new QQmlApplicationEngine(app))
+
{
;
}
@@ -73,7 +75,6 @@ AGLApplication::AGLApplication (int& argc, char** argv)
query.addQueryItem(QStringLiteral("token"), d_ptr->secret);
d_ptr->binding_address->setQuery(query);
- d_ptr->engine = new QQmlApplicationEngine();
if (!d_ptr->engine) {
qDebug("Cannot initialize QML Engine");
exit(EXIT_FAILURE);