aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-07-07 15:51:31 +0200
committerMitch Curtis <mitch.curtis@qt.io>2017-07-10 11:15:31 +0000
commit0c9ef2ef271db212380147b406eea860bd9e6231 (patch)
tree5ef3684aba8490896452479cd02a862b9772e4ce /tests/manual
parent73a38b2c740b9c0afeb828c16ba56114eaddc9a9 (diff)
testbench: reorganise layout
Move more... exotic controls to the end, move relevant controls together and try to make better use of the space, like a puzzle! Change-Id: I0ad41caa3cbd0747351b552478b265ccc800d5ca Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/testbench/testbench.qml367
1 files changed, 184 insertions, 183 deletions
diff --git a/tests/manual/testbench/testbench.qml b/tests/manual/testbench/testbench.qml
index 78825f9b..c596ceca 100644
--- a/tests/manual/testbench/testbench.qml
+++ b/tests/manual/testbench/testbench.qml
@@ -689,189 +689,6 @@ ApplicationWindow {
}
}
- RowLayout {
- GroupBox {
- id: normalGroupBox
- title: "GroupBox"
-
- contentWidth: 200
- contentHeight: 100
-
- BusyIndicator {
- anchors.centerIn: parent
- }
-
- PageIndicator {
- count: 5
- interactive: true
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- GroupBox {
- enabled: false
- title: "Disabled"
-
- contentWidth: 200
- contentHeight: 100
-
- BusyIndicator {
- anchors.centerIn: parent
- }
-
- PageIndicator {
- count: 5
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- GroupBox {
- enabled: false
- title: "."
- label.visible: false
-
- contentWidth: 200
- contentHeight: 100
-
- PageIndicator {
- count: 5
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
-
- RowLayout {
- Frame {
- id: scrollBarFrame
-
- padding: 0
- contentWidth: 200
- contentHeight: 100
-
- Label {
- text: "ScrollBar"
- anchors.centerIn: parent
- }
-
- ScrollBar {
- size: 0.6
- position: 0.1
- policy: ScrollBar.AlwaysOn
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- }
- }
-
- Frame {
- padding: 0
- contentWidth: 200
- contentHeight: 100
-
- Label {
- text: "Pressed"
- anchors.centerIn: parent
- }
-
- ScrollBar {
- size: 0.6
- position: 0.1
- policy: ScrollBar.AlwaysOn
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- pressed: true
- }
- }
-
- Frame {
- padding: 0
- contentWidth: 200
- contentHeight: 100
- enabled: false
-
- Label {
- text: "Disabled"
- anchors.centerIn: parent
- }
-
- ScrollBar {
- size: 0.6
- position: 0.1
- policy: ScrollBar.AlwaysOn
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- }
- }
- }
-
- RowLayout {
- Frame {
- padding: 0
- Layout.preferredWidth: 100
- Layout.preferredHeight: 100
-
- ScrollIndicator {
- size: 0.6
- position: 0.1
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- }
- }
-
- Frame {
- padding: 0
- Layout.preferredWidth: 100
- Layout.preferredHeight: 100
-
- ScrollIndicator {
- size: 0.6
- position: 0.1
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- enabled: false
- }
- }
- }
-
- RowLayout {
- Frame {
- Tumbler {
- model: 5
- implicitWidth: 80
- implicitHeight: 100
- }
- }
- Frame {
- Tumbler {
- model: 5
- implicitWidth: 80
- implicitHeight: 100
- enabled: false
- }
- }
- }
-
- RowLayout {
- Dial {
- value: 0.5
- implicitWidth: 100
- implicitHeight: 100
- }
- Dial {
- value: 0.5
- implicitWidth: 100
- implicitHeight: 100
- enabled: false
- }
- }
-
ListModel {
id: checkableDelegateModel
ListElement { label: "Pressed"; press: true }
@@ -1032,6 +849,190 @@ ApplicationWindow {
}
}
}
+
+ RowLayout {
+ Frame {
+ padding: 0
+ Layout.preferredWidth: 100
+ Layout.preferredHeight: 100
+
+ ScrollIndicator {
+ size: 0.6
+ position: 0.1
+ active: true
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ }
+ }
+
+ Frame {
+ padding: 0
+ Layout.preferredWidth: 100
+ Layout.preferredHeight: 100
+
+ ScrollIndicator {
+ size: 0.6
+ position: 0.1
+ active: true
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ enabled: false
+ }
+ }
+ }
+
+ RowLayout {
+ Frame {
+ id: scrollBarFrame
+
+ padding: 0
+ contentWidth: 200
+ contentHeight: 100
+
+ Label {
+ text: "ScrollBar"
+ anchors.centerIn: parent
+ }
+
+ ScrollBar {
+ size: 0.6
+ position: 0.1
+ policy: ScrollBar.AlwaysOn
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ }
+ }
+
+ Frame {
+ padding: 0
+ contentWidth: 200
+ contentHeight: 100
+
+ Label {
+ text: "Pressed"
+ anchors.centerIn: parent
+ }
+
+ ScrollBar {
+ size: 0.6
+ position: 0.1
+ policy: ScrollBar.AlwaysOn
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ pressed: true
+ }
+ }
+
+ Frame {
+ padding: 0
+ contentWidth: 200
+ contentHeight: 100
+ enabled: false
+
+ Label {
+ text: "Disabled"
+ anchors.centerIn: parent
+ }
+
+ ScrollBar {
+ size: 0.6
+ position: 0.1
+ policy: ScrollBar.AlwaysOn
+ orientation: Qt.Vertical
+ height: parent.height
+ anchors.right: parent.right
+ }
+ }
+ }
+
+ RowLayout {
+ GroupBox {
+ id: normalGroupBox
+ title: "GroupBox"
+
+ contentWidth: 200
+ contentHeight: 100
+
+ BusyIndicator {
+ anchors.centerIn: parent
+ }
+
+ PageIndicator {
+ count: 5
+ interactive: true
+ anchors.bottom: parent.bottom
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ }
+ GroupBox {
+ enabled: false
+ title: "Disabled"
+
+ contentWidth: 200
+ contentHeight: 100
+
+ BusyIndicator {
+ anchors.centerIn: parent
+ }
+
+ PageIndicator {
+ count: 5
+ anchors.bottom: parent.bottom
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ }
+ GroupBox {
+ enabled: false
+ title: "."
+ label.visible: false
+
+ contentWidth: 200
+ contentHeight: 100
+
+ PageIndicator {
+ count: 5
+ anchors.bottom: parent.bottom
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ }
+ }
+
+ RowLayout {
+ Dial {
+ value: 0.5
+ implicitWidth: 100
+ implicitHeight: 100
+ }
+ Dial {
+ value: 0.5
+ implicitWidth: 100
+ implicitHeight: 100
+ enabled: false
+ }
+ }
+
+ RowLayout {
+ Frame {
+ Tumbler {
+ id: tumbler
+ model: 10
+ implicitWidth: 60
+ implicitHeight: 200
+ }
+ }
+ Frame {
+ Tumbler {
+ model: 10
+ implicitWidth: 60
+ implicitHeight: 200
+ enabled: false
+ }
+ }
+ }
}
ScrollBar.vertical: ScrollBar {