summaryrefslogtreecommitdiff
path: root/app/pebble.cpp
diff options
context:
space:
mode:
authorPhilipp Andreas <github@smurfy.de>2014-07-22 19:17:53 +0200
committerPhilipp Andreas <github@smurfy.de>2014-07-22 19:49:07 +0200
commitc2c141ed1e13e6f0fbc740d0ff37caba0b2a7c08 (patch)
treea7892e105c85c7d4a32d3b3202e60ec2131e42c8 /app/pebble.cpp
parentc9c1ed9faee07c0067827872ffe465d465c81470 (diff)
parent9f8db04d6059e0b220e36a064d694a1b0649f5f0 (diff)
Merge branch 'master' into notifications
Conflicts: daemon/daemon.cpp daemon/manager.cpp daemon/manager.h
Diffstat (limited to 'app/pebble.cpp')
-rw-r--r--app/pebble.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/pebble.cpp b/app/pebble.cpp
index b2f4d09..44f1aeb 100644
--- a/app/pebble.cpp
+++ b/app/pebble.cpp
@@ -39,6 +39,13 @@ int main(int argc, char *argv[])
// Register Pebble daemon interface object on QML side
qmlRegisterType<PebbledInterface>("org.pebbled", 0, 1, "PebbledInterface");
- return SailfishApp::main(argc, argv);
+ QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
+
+ QScopedPointer<QQuickView> view(SailfishApp::createView());
+ view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION);
+ view->setSource(SailfishApp::pathTo("qml/pebble.qml"));
+ view->show();
+
+ return app->exec();
}