on xenial help sign in
checked image
commit52b888a35b3298288889603c38ee01b90d949f42 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 8 Oct 2015, 12:37 (11 years ago) parentdfdc6dc
1 file changed+14−1
qml/Dash/Filters/FilterOptionSelector.qml+14−1
qml/Dash/Filters/FilterOptionSelector.qml+14−1
@@ -64,8 +64,21 @@ FilterWidget {
6464 model: widgetData.options
6565
6666 ListItems.Standard {
67− // TODO checked
6867 text: label
68+
69+ Image {
70+ id: dropDown
71+ height: units.gu(3)
72+ fillMode: Image.PreserveAspectFit
73+ anchors.right: parent.right
74+ anchors.verticalCenter: parent.verticalCenter
75+ source: "image://theme/tick"
76+ visible: checked
77+ }
78+
79+ onClicked: {
80+ widgetData.options.setChecked(index, !checked);
81+ }
6982 }
7083 }
7184 }