diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-05-13 14:08:03 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-05-13 14:01:35 +0000 |
commit | ca87ab8c9b42e329d5db61deb4736ad5e628fffe (patch) | |
tree | 810b6421c7ca05aa13c27ff27312bd27d9b3656b /src/imports/controls/Dial.qml | |
parent | 4733004cac1e9def9b1fd37010580dd07607c05c (diff) |
Fix colorized high-DPI indicators
qtdeclarative commit f8c53e88 (Fix high-DPI image and svg providers)
changed the way high-DPI image providers work. For images using an
image provider, we must now set the source size to get the desired
device pixel ratio...
Change-Id: I47a90a9678ad43a54073d2cf1a2420925770c3ea
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/imports/controls/Dial.qml')
-rw-r--r-- | src/imports/controls/Dial.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/Dial.qml b/src/imports/controls/Dial.qml index 9db51384..aa138126 100644 --- a/src/imports/controls/Dial.qml +++ b/src/imports/controls/Dial.qml @@ -63,6 +63,8 @@ T.Dial { width: 14 height: 10 source: "image://default/dial-indicator/" + (control.visualFocus ? "#0066ff" : "#353637") + sourceSize.width: width + sourceSize.height: height antialiasing: true opacity: control.enabled ? 1 : 0.3 transform: [ |