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>
This commit is contained in:
Grace Karanja 2015-06-03 17:19:01 +03:00 committed by Dirk Hohndel
parent 6ef082a4a2
commit b09975f46a

View file

@ -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);