@@ -15,10 +15,49 @@
17import QtQuick 2.4
17import QtQuick 2.4
18+import Ubuntu.Components 1.2
19+import Ubuntu.Components.ListItems 1.2 as ListItems
19−/*! Interface for filter widgets. */
21+/*! Option Selector Filter Widget. */
21FilterWidget {
23FilterWidget {
23− implicitHeight: units.gu(4)
24+ implicitHeight: expandingItem.height
26+ ListItems.Expandable {
30+ expandedHeight: collapsedHeight + column.height
34+ expanded = !expanded;
39+ anchors.top: parent.top
40+ height: expandingItem.collapsedHeight
44+ anchors.verticalCenter: parent.verticalCenter
45+ text: widgetData.label
51+ anchors.top: holder.bottom
54+ model: widgetData.options