summaryrefslogtreecommitdiff
path: root/src/controls/Button.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-07-08 14:05:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-09 10:14:50 +0200
commitf8d0f61652cab3001f2ecee40a09981cf36648f7 (patch)
treed57be95da6f9e80201375cf7952a0ac1f46bfbf8 /src/controls/Button.qml
parent48ffe1616bfb4dbc850470cd9dc2f61bb3650d70 (diff)
downloadqtquickcontrols-f8d0f61652cab3001f2ecee40a09981cf36648f7.tar.gz
Fix missing tool tip on Button
This binding was trying to hide the tooltip when the tooltip text is the same as the button text. Unforunatately the logic was somewhat broken and could not even theoretically work for the case when there was a tooltip text set on the button itself. Since the user can locally fix this by simply not setting a tool tip or setting it to an empty string, I think it is better to simply get rid of the binding. Change-Id: I80ad2941649915a4f0eb54d9ba1c590b0292662c Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/Button.qml')
-rw-r--r--src/controls/Button.qml8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/controls/Button.qml b/src/controls/Button.qml
index 0a3cb131..0e51b7a2 100644
--- a/src/controls/Button.qml
+++ b/src/controls/Button.qml
@@ -101,14 +101,6 @@ BasicButton {
value: button
}
- Binding {
- target: button
- property: "tooltip"
- // We don't want a tooltip if it's the same as the button text
- when: !!text && !(action && (!!action.tooltip || action.tooltip === text))
- value: ""
- }
-
Connections {
target: __behavior
onEffectivePressedChanged: {