~aacid/unity8/desktopRotatedCamera

« back to all changes in this revision

Viewing changes to qml/Dash/Filters/FilterWidgetFactory.qml

  • Committer: Albert Astals Cid
  • Date: 2016-06-02 07:43:13 UTC
  • mfrom: (2039.198.42 unity8)
  • Revision ID: albert.astals@canonical.com-20160602074313-qycavrlys0yftjfd
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    //! Widget data, forwarded to the widget as is.
32
32
    property var widgetData: null
33
33
 
 
34
    // Emitted iff filter type is FilterOptionSelector
 
35
    signal singleSelectionFilterSelected()
 
36
 
34
37
    implicitHeight: title.height + title.anchors.topMargin + loader.height
35
38
 
36
39
    Label {
77
80
            item.widgetId = Qt.binding(function() { return root.widgetId } )
78
81
            item.widgetData = Qt.binding(function() { return root.widgetData } )
79
82
        }
 
83
 
 
84
        Connections {
 
85
            target: widgetType == Filters.OptionSelectorFilter ? loader.item : null
 
86
            onFilterSelected: root.singleSelectionFilterSelected()
 
87
        }
80
88
    }
81
89
}