From 84c251398ca6efa41bade55fded249d2d937ba88 Mon Sep 17 00:00:00 2001 From: marcin Date: Tue, 22 Jul 2014 16:55:25 +0200 Subject: https://trello.com/c/l0lGL8QQ/52-advanced-filtering-in-history-needs-to-be-more-obviously-toggled-than-the-hyperlink-an-icon-maybe --- components/CheckBox.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/CheckBox.qml') diff --git a/components/CheckBox.qml b/components/CheckBox.qml index 9cfe38b3..adc9a232 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -3,6 +3,8 @@ import QtQuick 2.0 Item { id: checkBox property alias text: label.text + property string checkedIcon + property string uncheckedIcon property bool checked: false signal clicked() height: 25 @@ -28,8 +30,8 @@ Item { Image { anchors.centerIn: parent - source: checkBox.checked ? "../images/checkedIcon.png" : - "../images/uncheckedIcon.png" + source: checkBox.checked ? checkBox.checkedIcon : + checkBox.uncheckedIcon } } -- cgit v1.2.3