aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 9ec8283..f710ec4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -17,6 +17,7 @@
#include <QQuickView>
#include <QGuiApplication>
+#include <QScreen>
#include <MDeclarativeCache>
Q_DECL_EXPORT int main(int argc, char *argv[])
@@ -25,6 +26,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QScopedPointer<QQuickView> view(MDeclarativeCache::qQuickView());
view->setSource(QUrl("qrc:/main.qml"));
view->setTitle("Stopwatch");
- view->showFullScreen();
+ view->resize(app->primaryScreen()->size());
+ view->show();
return app->exec();
}