DefaultColorDialog bugfix: binding color to a TextField
authorShawn Rutledge <shawn.rutledge@digia.com>
Wed, 11 Sep 2013 13:14:28 +0000 (15:14 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Sep 2013 10:07:30 +0000 (12:07 +0200)
The text field shows the hex value of the currently selected color,
but the color to string conversion is not implicit.

Change-Id: I914033d6358696b4014ca48bf3ae435c98b5be33
Reviewed-by: Liang Qi <liang.qi@digia.com>
src/imports/dialogs/DefaultColorDialog.qml

index 44af99b..4068c85 100644 (file)
@@ -296,7 +296,7 @@ AbstractColorDialog {
                 spacing: content.spacing
                 TextField {
                     id: colorField
-                    text: root.color
+                    text: root.color.toString()
                     anchors.verticalCenter: parent.verticalCenter
                     onAccepted:  root.color = text
                     Component.onCompleted: width = implicitWidth + 10