summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-23 16:34:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-24 19:20:59 +0200
commitc499ecd916571f4c6d1ee8b8b9bfd8127c617cc6 (patch)
treed03f3b8030b6a4aefcb565360f65f895c15eb741 /tests
parent47920bdd6e1de83f1ac5c3b64a0e766e96730f34 (diff)
downloadqtquickcontrols-c499ecd916571f4c6d1ee8b8b9bfd8127c617cc6.tar.gz
qtquickcontrols-c499ecd916571f4c6d1ee8b8b9bfd8127c617cc6.tar.bz2
qtquickcontrols-c499ecd916571f4c6d1ee8b8b9bfd8127c617cc6.zip
Switch styling fixes
- makes it work somewhat better on HDPI devices. - makes it translucent when disabled - makes it show up int testbench Change-Id: I48a4b65f969430a3f7d1c5fe3b6623b86324a3d3 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/testbench/content/Components.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/manual/testbench/content/Components.qml b/tests/manual/testbench/content/Components.qml
index 98642aff..be7bf972 100644
--- a/tests/manual/testbench/content/Components.qml
+++ b/tests/manual/testbench/content/Components.qml
@@ -56,6 +56,7 @@ Item {
property Component textarea: TextArea { text: loremIpsum }
property Component toolbar: ToolBar { }
property Component statusbar: StatusBar { }
+ property Component switchcontrol: Switch { }
property Component label: Label {text: "I am a label" }
property Component tableview: TableView { property bool movableColumns: true; model: testDataModel ; TableViewColumn {title: "Column 1"; movable: movableColumns} TableViewColumn {title: "Column 2"; movable: movableColumns} }
property Component tabView: TabView { Repeater { model: 3 ; delegate:Tab { title: "Tab " + index } }}
@@ -121,6 +122,7 @@ Item {
append({ name: "ComboBox", component: combobox});
append({ name: "RadioButton", component: radiobutton});
append({ name: "Slider", component: slider});
+ append({ name: "Switch", component: switchcontrol});
append({ name: "ProgressBar", component: progressbar});
append({ name: "TextField", component: textfield});
append({ name: "TextArea", component: textarea});
@@ -147,6 +149,7 @@ Item {
property Component spinboxStyle: SpinBoxStyle {}
property Component toolbarStyle: ToolBarStyle {}
property Component statusbarStyle: StatusBarStyle {}
+ property Component switchStyle: SwitchStyle {}
property Component tableviewStyle: TableViewStyle {}
property Component scrollviewStyle: ScrollViewStyle {}
property Component groupboxStyle: GroupBoxStyle {}
@@ -163,6 +166,7 @@ Item {
append({ name: "ComboBox", component: comboboxStyle});
append({ name: "RadioButton", component: radiobuttonStyle});
append({ name: "Slider", component: sliderStyle});
+ append({ name: "Switch", component: switchStyle});
append({ name: "ProgressBar", component: progressbarStyle});
append({ name: "TextField", component: textfieldStyle});
append({ name: "TextArea", component: textareaStyle});