From 05f6b386f9e49d263c47a1b5cce668bbc964f32e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 20 Apr 2016 14:40:42 +0200 Subject: Default: use QQuickColorImageProvider This way we don't need to duplicate all images that are built into the main controls plugin's resources. In order to make them work with QQuickColorImageProvider, some of the images had to be converted from Format_Indexed8 to Format_ARGB32: QPainter::begin: Cannot paint on an image with the QImage::Format_Indexed8 format QPainter::setCompositionMode: Painter not active Change-Id: I67f8820e803ef7ff29ce60460ed4ca5bb2fad4cb Reviewed-by: Mitch Curtis --- src/imports/controls/Dial.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/controls/Dial.qml') diff --git a/src/imports/controls/Dial.qml b/src/imports/controls/Dial.qml index a92bc112..50f7ea7e 100644 --- a/src/imports/controls/Dial.qml +++ b/src/imports/controls/Dial.qml @@ -61,7 +61,7 @@ T.Dial { y: background.y + background.height / 2 - handle.height / 2 width: 14 height: 10 - source: "qrc:/qt-project.org/imports/Qt/labs/controls/images/dial-indicator" + (control.activeKeyFocus ? "-focus.png" : ".png") + source: "image://default/dial-indicator/" + (control.activeKeyFocus ? "#0066ff" : "#353637") antialiasing: true opacity: control.enabled ? 1 : 0.3 transform: [ -- cgit v1.2.3