From 0155e0833c56ccd21ca5668eb1be8b359400535b Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Date: Wed, 29 May 2013 17:45:10 +0200 Subject: [PATCH] ToolBar: Get proper pressed state on Mac Depends on https://codereview.qt-project.org/57500 Change-Id: I131fa8e25322a10a10878e5f603084e951d101ad Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> --- src/styles/Desktop/ToolButtonStyle.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles/Desktop/ToolButtonStyle.qml b/src/styles/Desktop/ToolButtonStyle.qml index ebeec7615..b5b260e62 100644 --- a/src/styles/Desktop/ToolButtonStyle.qml +++ b/src/styles/Desktop/ToolButtonStyle.qml @@ -46,8 +46,8 @@ Style { anchors.fill: parent elementType: "toolbutton" - on: control.pressed || (control.checkable && control.checked) - sunken: control.pressed || (control.checkable && control.checked) + on: control.checkable && control.checked + sunken: control.pressed raised: !(control.checkable && control.checked) && control.__containsMouse hover: control.__containsMouse hasFocus: control.activeFocus -- GitLab