diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 10:42:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 10:52:15 -0700 |
commit | 4088f9f652f447a65f5af00f0712f38bd97b4172 (patch) | |
tree | 358695135e1e2a32d182a1bd26f36e5f1114e14f /qt-gui.cpp | |
parent | 93d348fa592ecbd20d3ce1de1fade1ca4654a899 (diff) | |
download | subsurface-4088f9f652f447a65f5af00f0712f38bd97b4172.tar.gz |
QML UI: set window size on desktop devices
On Android the app figures out the size by itself.
Also change the name to match our naming scheme (Subsurface mobile for the
QML UI).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index a3a61e408..9c4d2ba44 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -47,6 +47,10 @@ void run_ui() QObject *mainWindow = engine.rootObjects().value(0); QQuickWindow *qml_window = qobject_cast<QQuickWindow *>(mainWindow); qml_window->setIcon(QIcon(":/subsurface-mobile-icon")); +#if !defined(Q_OS_ANDROID) + qml_window->setHeight(1200); + qml_window->setWidth(800); +#endif qml_window->show(); #else window->show(); |