From 8538f919caf00919b1eeaa06002e00bd1bb83403 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 17 Feb 2022 17:49:15 +0100 Subject: [PATCH] QmlDesigner: Adjust wizard template Instead of using the constants we can use the size of the main screen directly. This has the advantage that if the size of the main screen changes without adjusting the constants it still works. Change-Id: I602cf4089249e90efb6a35b803d67df6ca2b1bab Reviewed-by: Thomas Hartmann --- .../qmldesigner/studio_templates/projects/common/App.qml.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl index 1a6597e2271..32b90720938 100644 --- a/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/projects/common/App.qml.tpl @@ -35,13 +35,14 @@ import QtQuick.VirtualKeyboard %{QtQuickVersion} @endif Window { - width: Constants.width - height: Constants.height + width: mainScreen.width + height: mainScreen.height visible: true title: "%{ProjectName}" %{UIClassName} { + id: mainScreen } @if %{UseVirtualKeyboard}