diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-12-30 12:09:02 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-01-03 05:07:26 +0000 |
commit | a13dce3d471c77474ce4b0f6bae115a015139229 (patch) | |
tree | 7f999dc470adf1f8ba79bfa5c502d776d902daa4 /src/imports/controls/material/ComboBox.qml | |
parent | d0ba7b41f27fbfac366930a5e92b80e530b39630 (diff) |
Material: fix ComboBox drop indicator size on high-DPI
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... The same was done for other indicators in qqc2
commit ca87ab8.
Change-Id: I31f24786a6d3d3d06c3255864ed443cf8852a8de
Task-number: QTBUG-57800
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/ComboBox.qml')
-rw-r--r-- | src/imports/controls/material/ComboBox.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/material/ComboBox.qml b/src/imports/controls/material/ComboBox.qml index 15987ebc..a0fdef66 100644 --- a/src/imports/controls/material/ComboBox.qml +++ b/src/imports/controls/material/ComboBox.qml @@ -74,6 +74,8 @@ T.ComboBox { x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding y: control.topPadding + (control.availableHeight - height) / 2 source: "image://material/drop-indicator/" + (control.enabled ? control.Material.foreground : control.Material.hintTextColor) + sourceSize.width: width + sourceSize.height: height } contentItem: Text { |