summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwan <m.schwan@phytec.de>2020-01-07 13:55:42 +0100
committerMartin Schwan <m.schwan@phytec.de>2020-01-22 10:08:44 +0100
commit1d757268cdd711af806d648c1ffefc2d4b99fc01 (patch)
tree05a1f3eabf3f591b676f1056352aa3cf0f8ed1e0
parent85b961f649a947b3d1d3ad4ae1cc563806ca8de4 (diff)
downloadaidemo-customvision-1d757268cdd711af806d648c1ffefc2d4b99fc01.tar.bz2
aidemo-customvision-1d757268cdd711af806d648c1ffefc2d4b99fc01.zip
modules: demo: Set proper fullscreen window state
Use the fullscreen visibility option to set the window into the correct fullscreen state instead of resizing it manually. This requires a Wayland shell integration that supports fullscreen windows. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
-rw-r--r--modules/demo/src/main.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/demo/src/main.qml b/modules/demo/src/main.qml
index 6409716..5fe987a 100644
--- a/modules/demo/src/main.qml
+++ b/modules/demo/src/main.qml
@@ -10,11 +10,8 @@ import Phytec 1.0
ApplicationWindow {
id: window
- minimumWidth: layoutMain.implicitWidth
- minimumHeight: layoutMain.implicitHeight
visible: true
- width: Screen.desktopAvailableWidth
- height: Screen.desktopAvailableHeight - 32
+ visibility: Window.FullScreen
Shortcut {
sequences: ["Q", "Ctrl+Q", "Ctrl+W", "Ctrl+C"]