mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 22:16:16 +00:00
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:
parent
6ef082a4a2
commit
b09975f46a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue