summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-06-03 17:19:01 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 14:18:48 -0700
commitb09975f46a5223062c58453b7b867d5621586e5a (patch)
treec6a594fd48846424c407423130c34ccd6534000a /qt-gui.cpp
parent6ef082a4a20d56a9ee4c7313bc1675a42606e35a (diff)
downloadsubsurface-b09975f46a5223062c58453b7b867d5621586e5a.tar.gz
Hide MainWindow when running under mobile
When compiling the mobile version, hide the Qt MainWindow. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index fdcae2c77..6bc2e1e30 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -31,6 +31,7 @@ void init_ui()
void run_ui()
{
#ifdef SUBSURFACE_MOBILE
+ window->hide();
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
QObject *mainWindow = engine.rootObjects().value(0);