summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-08-06 14:21:27 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-06 16:03:57 +0200
commit0bf9c1c5b27009bae612cbef24e76e9e4ad60768 (patch)
tree775d3cfae1f6cc3caabc3712fbf5202a13aaab1a
parentb8abaebb5b4309ffb6d3e559ec422ef5cd527496 (diff)
downloadqtquickcontrols-0bf9c1c5b27009bae612cbef24e76e9e4ad60768.tar.gz
Base/ButtonStyle: fix the background of checked buttons
Task-number: QTBUG-32542 Change-Id: I15b9a62b1daad14a591d9e46f15a754ec230e700 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r--src/styles/Base/ButtonStyle.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styles/Base/ButtonStyle.qml b/src/styles/Base/ButtonStyle.qml
index 7721fdf2..aea5f721 100644
--- a/src/styles/Base/ButtonStyle.qml
+++ b/src/styles/Base/ButtonStyle.qml
@@ -99,7 +99,7 @@ Style {
implicitHeight: 25
BorderImage {
anchors.fill: parent
- source: control.pressed ? "images/button_down.png" : "images/button.png"
+ source: control.pressed || (control.checkable && control.checked) ? "images/button_down.png" : "images/button.png"
border.top: 6
border.bottom: 6
border.left: 6