aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/testbench/main.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-10-27 09:26:10 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-10-27 10:34:51 +0000
commitdac9c3f46650ef69a32f09280f3e78f9bba0f77b (patch)
tree9a3bda6609a13bd5b70c1fd2e128bb55a7421180 /tests/manual/testbench/main.qml
parent4f2251caa995cab6b5231580b7b4c7e3be55ba14 (diff)
Make testbench work with all styles
Take advantage of file selectors to display different styles. Change-Id: I2722fdbeedd343682622a9eb5084f65f11dee371 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/manual/testbench/main.qml')
-rw-r--r--tests/manual/testbench/main.qml362
1 files changed, 3 insertions, 359 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml
index 44d7678d..7de5a529 100644
--- a/tests/manual/testbench/main.qml
+++ b/tests/manual/testbench/main.qml
@@ -44,370 +44,14 @@ import QtQuick.Layouts 1.0
import Qt.labs.controls 1.0
ApplicationWindow {
+ id: window
visible: true
width: 700
height: 1000
- Flow {
- id: mainColumn
+ Loader {
anchors.fill: parent
- anchors.margins: 30
- spacing: 30
-
- RowLayout {
- BusyIndicator {
- }
- BusyIndicator {
- enabled: false
- }
- }
-
- RowLayout {
- Button {
- text: "Normal"
- }
- Button {
- text: "Pressed"
- pressed: true
- }
- Button {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- CheckBox {
- text: "Normal"
- }
- CheckBox {
- text: "Pressed"
- pressed: true
- }
- CheckBox {
- text: "Checked"
- checked: true
- }
- CheckBox {
- text: "Checked + Pressed"
- checked: true
- pressed: true
- }
- CheckBox {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- Dial {
- }
- Dial {
- enabled: false
- }
- }
-
- RowLayout {
- Frame {
- Text {
- text: "Normal"
- }
- }
- Frame {
- enabled: false
-
- Text {
- text: "Disabled"
- }
- }
- }
-
- RowLayout {
- GroupBox {
- title: "Normal"
-
- Item {
- width: 100
- height: 20
- }
- }
- GroupBox {
- enabled: false
- title: "Disabled"
-
- Item {
- width: 100
- height: 20
- }
- }
- }
-
- RowLayout {
- Label {
- text: "Normal"
- }
- Label {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- PageIndicator {
- count: 5
- }
- PageIndicator {
- count: 5
- enabled: false
- }
- }
-
- RowLayout {
- ProgressBar {
- value: 0.5
- }
- ProgressBar {
- value: 0.5
- enabled: false
- }
- }
-
- RowLayout {
- RadioButton {
- text: "Normal"
- }
- RadioButton {
- text: "Pressed"
- pressed: true
- }
- RadioButton {
- text: "Checked"
- checked: true
- }
- RadioButton {
- text: "Checked + Pressed"
- checked: true
- pressed: true
- }
- RadioButton {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- RangeSlider {
- first.value: 0.25
- second.value: 0.75
- }
- RangeSlider {
- first.value: 0.25
- first.pressed: true
- second.value: 0.75
- }
- RangeSlider {
- first.value: 0.25
- second.value: 0.75
- enabled: false
- }
- }
-
- RowLayout {
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- ScrollBar {
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- }
- }
-
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- ScrollBar {
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- pressed: true
- }
- }
-
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- ScrollBar {
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- enabled: false
- }
- }
- }
-
- RowLayout {
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- ScrollIndicator {
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- }
- }
-
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- ScrollIndicator {
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
- height: parent.height
- anchors.right: parent.right
- enabled: false
- }
- }
- }
-
- RowLayout {
- Slider {
- value: 0.5
- }
- Slider {
- value: 0.5
- pressed: true
- }
- Slider {
- value: 0.5
- enabled: false
- }
- }
-
- RowLayout {
- Switch {
- text: "Normal"
- }
- Switch {
- text: "Pressed"
- pressed: true
- }
- Switch {
- text: "Checked"
- checked: true
- }
- Switch {
- text: "Checked + Pressed"
- checked: true
- pressed: true
- }
- Switch {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- TabBar {
- TabButton {
- text: "Normal"
- }
- TabButton {
- text: "Pressed"
- pressed: true
- }
- TabButton {
- text: "Disabled"
- enabled: false
- }
- }
- }
-
- RowLayout {
- TextArea {
- text: "Normal"
- }
- TextArea {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- TextField {
- text: "Normal"
- }
- TextField {
- text: "Disabled"
- enabled: false
- }
- }
-
- RowLayout {
- ToolBar {
- Row {
- ToolButton {
- text: "Normal"
- }
- ToolButton {
- text: "Pressed"
- pressed: true
- }
- ToolButton {
- text: "Disabled"
- enabled: false
- }
- }
- }
- }
-
- RowLayout {
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- Tumbler {
- model: 5
- anchors.fill: parent
- }
- }
- Rectangle {
- width: 100
- height: 100
- border.color: Theme.frameColor
-
- Tumbler {
- model: 5
- anchors.fill: parent
- enabled: false
- }
- }
- }
+ source: "qrc:/styles/Style.qml"
}
}