mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
93d348fa59
commit
4088f9f652
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -6,8 +6,9 @@ import QtQuick.Layouts 1.1
|
|||
import org.subsurfacedivelog.mobile 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
title: qsTr("Subsurface")
|
||||
width: 500;
|
||||
title: qsTr("Subsurface mobile")
|
||||
property bool fullscreen: true
|
||||
visible: true
|
||||
|
||||
QMLManager {
|
||||
id: manager
|
||||
|
|
Loading…
Add table
Reference in a new issue