diff options
author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2013-05-29 17:45:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-31 11:54:24 +0200 |
commit | 0155e0833c56ccd21ca5668eb1be8b359400535b (patch) | |
tree | df9c187e33c914bbbe2eaea1c9e0f23afabe4de9 | |
parent | 099e0294179126db5c98cc3dac309f2463360f3c (diff) | |
download | qtquickcontrols-0155e0833c56ccd21ca5668eb1be8b359400535b.tar.gz |
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>
-rw-r--r-- | src/styles/Desktop/ToolButtonStyle.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/styles/Desktop/ToolButtonStyle.qml b/src/styles/Desktop/ToolButtonStyle.qml index ebeec761..b5b260e6 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 |