forked from qt-creator/qt-creator
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:
@@ -35,13 +35,14 @@ import QtQuick.VirtualKeyboard %{QtQuickVersion}
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
width: Constants.width
|
width: mainScreen.width
|
||||||
height: Constants.height
|
height: mainScreen.height
|
||||||
|
|
||||||
visible: true
|
visible: true
|
||||||
title: "%{ProjectName}"
|
title: "%{ProjectName}"
|
||||||
|
|
||||||
%{UIClassName} {
|
%{UIClassName} {
|
||||||
|
id: mainScreen
|
||||||
}
|
}
|
||||||
|
|
||||||
@if %{UseVirtualKeyboard}
|
@if %{UseVirtualKeyboard}
|
||||||
|
Reference in New Issue
Block a user