on xenial help sign in
checked image
52b888aAlbert Astals Cid
qml/Dash/Filters/FilterOptionSelector.qml+14−1
@@ -64,8 +64,21 @@ FilterWidget {
64 model: widgetData.options
64 model: widgetData.options
65
65
66 ListItems.Standard {
66 ListItems.Standard {
67− // TODO checked
68 text: label
67 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+ }
69 }
82 }
70 }
83 }
71 }
84 }