forked from qt-creator/qt-creator
Qt Quick templates: move visible assignment after width and height
This is more common; visible and enabled are usually after size-related bindings. Change-Id: I2148491d8a8fdbf4f7bc2b261bd6472bae697969 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -2,8 +2,8 @@ import QtQuick %{QtQuickVersion}
|
||||
import QtQuick.Window %{QtQuickWindowVersion}
|
||||
|
||||
Window {
|
||||
title: qsTr("Hello World")
|
||||
width: 640
|
||||
height: 480
|
||||
visible: true
|
||||
title: qsTr("Hello World")
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ Window {
|
||||
@if %{UseVirtualKeyboard}
|
||||
id: window
|
||||
@endif
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
visible: true
|
||||
title: qsTr("Hello World")
|
||||
@if %{UseVirtualKeyboard}
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ ApplicationWindow {
|
||||
@if %{UseVirtualKeyboard}
|
||||
id: window
|
||||
@endif
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
visible: true
|
||||
title: qsTr("Scroll")
|
||||
|
||||
ScrollView {
|
||||
|
||||
@@ -6,9 +6,9 @@ import %{QtQuickVirtualKeyboardImport}
|
||||
|
||||
ApplicationWindow {
|
||||
id: window
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
visible: true
|
||||
title: qsTr("Stack")
|
||||
|
||||
header: ToolBar {
|
||||
|
||||
@@ -8,9 +8,9 @@ ApplicationWindow {
|
||||
@if %{UseVirtualKeyboard}
|
||||
id: window
|
||||
@endif
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
visible: true
|
||||
title: qsTr("Tabs")
|
||||
|
||||
SwipeView {
|
||||
|
||||
Reference in New Issue
Block a user