From 90da724a56c2ff20617d3e231a6ef877928df482 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 15 Aug 2015 16:22:05 +0200 Subject: Expose component settings as properties Otherwise they are not accessible to JS commands, i.e. they can not be changed in command mode. --- src/widget/Highlighter.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/widget') diff --git a/src/widget/Highlighter.qml b/src/widget/Highlighter.qml index e42aeb1..b2db7f6 100644 --- a/src/widget/Highlighter.qml +++ b/src/widget/Highlighter.qml @@ -2,8 +2,7 @@ import QtQuick 2.0 import Qt.labs.settings 1.0 Item { - Settings { - id: settings + property Settings settings : Settings { category: "highlighter" property string defaultColor : "#909636" -- cgit v1.2.3