summaryrefslogtreecommitdiff
path: root/sowatchui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchui/main.cpp')
-rw-r--r--sowatchui/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sowatchui/main.cpp b/sowatchui/main.cpp
new file mode 100644
index 0000000..54a65fa
--- /dev/null
+++ b/sowatchui/main.cpp
@@ -0,0 +1,14 @@
+#include <QtGui/QApplication>
+#include "qmlapplicationviewer.h"
+
+Q_DECL_EXPORT int main(int argc, char *argv[])
+{
+ QScopedPointer<QApplication> app(createApplication(argc, argv));
+ QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
+
+ viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
+ viewer->setMainQmlFile(QLatin1String("qml/main.qml"));
+ viewer->showExpanded();
+
+ return app->exec();
+}