aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/testbench
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-01 13:26:21 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-22 19:32:37 +0000
commitcd716f1b1c903b7a2fdfd82bb88959119ebca72d (patch)
treea8ff297e58d34b0c8b6fd24a51a2301c8c2708bb /tests/manual/testbench
parentfaa65aebb2e52cc809248f6cbb86b994ff329285 (diff)
Introduce ToolTip
Change-Id: I917f7e83219788fc63389773eb07ee39757bed7f Task-number: QTBUG-51003 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/manual/testbench')
-rw-r--r--tests/manual/testbench/main.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml
index 6ace3620..76d945ba 100644
--- a/tests/manual/testbench/main.qml
+++ b/tests/manual/testbench/main.qml
@@ -69,6 +69,10 @@ ApplicationWindow {
ToolButton {
text: "Normal"
+ hoverEnabled: true
+ ToolTip.text: text
+ ToolTip.delay: 1000
+ ToolTip.visible: hovered
onClicked: menu.visible ? menu.close() : menu.open()
Menu {
@@ -93,15 +97,27 @@ ApplicationWindow {
ToolButton {
text: "Pressed"
pressed: true
+ hoverEnabled: true
+ ToolTip.text: text
+ ToolTip.delay: 1000
+ ToolTip.visible: hovered
}
ToolButton {
text: "Checked"
checkable: true
checked: true
+ hoverEnabled: true
+ ToolTip.text: text
+ ToolTip.delay: 1000
+ ToolTip.visible: hovered
}
ToolButton {
text: "Highlighted"
highlighted: true
+ hoverEnabled: true
+ ToolTip.text: text
+ ToolTip.delay: 1000
+ ToolTip.visible: hovered
}
ToolButton {
text: "Disabled"