From f8d0f61652cab3001f2ecee40a09981cf36648f7 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Mon, 8 Jul 2013 14:05:06 +0200 Subject: 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 --- src/controls/Button.qml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') 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: { -- cgit v1.2.1