aboutsummaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-12 17:41:48 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-13 07:04:19 +0000
commitc5313bfa18ab0b0b8997c72473458e741857bc8a (patch)
tree5b5c017a5287fcd4874ddf82255e536bf3621527 /app/main.cpp
parentdda6e9cf5827ca166194c8baec93e975e02c35e0 (diff)
tbtnavi: read missing qml signals/slotsicefish_8.99.1icefish/8.99.18.99.1
Connect libqtappfw provided events to qml via signals/slots Bug-AGL: SPEC-2880 Change-Id: Ib915195caf34ac94575bebd03bdd86fd848c36d6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp
index eb7f3f3..108ce08 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -88,10 +88,12 @@ int main(int argc, char *argv[])
context->setContextProperty("fileOperation", &file);
Navigation *navigation = new Navigation(bindingAddress, context);
- new navigation_client(navigation);
engine.load(QUrl(QStringLiteral("qrc:qml/Main.qml")));
+
QObject *root = engine.rootObjects().first();
+ new navigation_client(navigation, root->findChild<QObject*>("mapwindow"));
+
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);
QObject::connect(window, SIGNAL(frameSwapped()), qwmHandler, SLOT(slotActivateWindow()));