summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-02-20 12:13:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-20 15:39:57 +0100
commit24008be92255599d5c14b41d447559c72d4d32bf (patch)
treea1db9b93079924116cdc979b056b9871d999447a /tests/manual
parent12d6cca8542fdb24e3c8b16741f43171de381677 (diff)
downloadqtquickcontrols-24008be92255599d5c14b41d447559c72d4d32bf.tar.gz
ToolButton: Fix text not visible
iconSource is an url so it needs to be converted to a string when used with the non-coerning test checking if it is an empty string or not. Otherwise it is always false and the text item never visible. Add ToolButton to the manual test tool TestBench. Change-Id: I1099bb4c7c10565e3f40588c82015ae54be42e20 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/testbench/content/Components.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/manual/testbench/content/Components.qml b/tests/manual/testbench/content/Components.qml
index 07d0acb0..985e0dad 100644
--- a/tests/manual/testbench/content/Components.qml
+++ b/tests/manual/testbench/content/Components.qml
@@ -44,6 +44,7 @@ import QtDesktop 1.0
Item {
property Component button: Button { text: "Push me"}
property Component checkbox: CheckBox { text: "A CheckBox" }
+ property Component toolbutton: ToolButton { text: "A ToolButton" }
property Component radiobutton: RadioButton { text: "A RadioButton" }
property Component textfield: TextField { }
property Component spinbox: SpinBox {}
@@ -96,6 +97,7 @@ Item {
property var componentModel: ListModel {
Component.onCompleted: {
append({ name: "Button", component: button});
+ append({ name: "ToolButton", component: toolbutton});
append({ name: "CheckBox", component: checkbox});
append({ name: "ComboBox", component: combobox});
append({ name: "RadioButton", component: radiobutton});
@@ -107,7 +109,7 @@ Item {
append({ name: "ToolBar", component: toolbar});
append({ name: "StatusBar", component: statusbar});
append({ name: "TableView", component: tableview});
- append({ name: "ScrollArea", component: scrollarea});
+ append({ name: "ScrollArea", component: scrollarea});
}
}
}