diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-01 13:26:21 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-22 19:32:37 +0000 |
commit | cd716f1b1c903b7a2fdfd82bb88959119ebca72d (patch) | |
tree | a8ff297e58d34b0c8b6fd24a51a2301c8c2708bb /tests/manual/testbench | |
parent | faa65aebb2e52cc809248f6cbb86b994ff329285 (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.qml | 16 |
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" |