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 <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-02-17 17:49:15 +01:00
parent 59fb0e9c9c
commit 8538f919ca

View File

@@ -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}