aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-01-12 20:04:09 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-01-12 20:04:09 +0000
commit57100f64e1813eac59ddc0f2b98641b351fda03b (patch)
tree2b701cca616189898e99b3034adf2aef98c3fc18
parent4621afef9abf2367d3913e57468e61a1e373616f (diff)
parentfe2aebc3fedb8e2c216995a365ad254270fbd079 (diff)
-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);