From aca84cb4ef24c1b4b9e3d53126081db8b14855e2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 12 Aug 2015 20:24:52 +0200 Subject: Change color setting types to `string` While `color` would obviously be the correct type to store a color value it is serialized as a `QVariant` value which is not easily changeable by the user. This requirement is satisfied by `string` and as such this type is - at this point in time - a superior replacement of `color`. Should the QML settings module be changed to serialize color values in a human readable fashion these types should be changed back to their formally correct value. --- qml/Highlighter.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qml/Highlighter.qml') diff --git a/qml/Highlighter.qml b/qml/Highlighter.qml index cfb8492..e42aeb1 100644 --- a/qml/Highlighter.qml +++ b/qml/Highlighter.qml @@ -6,8 +6,8 @@ Item { id: settings category: "highlighter" - property color defaultColor : "#909636" - property color focusColor : "#352F6A" + property string defaultColor : "#909636" + property string focusColor : "#352F6A" } function select() { bar.opacity = 1 } -- cgit v1.2.3