on xenial help sign in
wire up search
da009e4Albert Astals
qml/Dash/ScopesList.qml+13−1
@@ -45,6 +45,18 @@ Item {
45 anchors.fill: parent
45 anchors.fill: parent
46 }
46 }
47
47
48+ Binding {
49+ target: root.scope
50+ property: "searchQuery"
51+ value: header.searchQuery
52+ }
53+
54+ Binding {
55+ target: header
56+ property: "searchQuery"
57+ value: root.scope ? root.searchQuery : ""
58+ }
59+
48 PageHeader {
60 PageHeader {
49 id: header
61 id: header
50 title: i18n.tr("My Feeds")
62 title: i18n.tr("My Feeds")
@@ -69,7 +81,7 @@ Item {
69 Column {
81 Column {
70 id: column
82 id: column
71 Repeater {
83 Repeater {
72− model: scope && scope.searchQuery == "" ? scope.categories : null
84+ model: scope ? scope.categories : null
73
85
74 delegate: Loader {
86 delegate: Loader {
75 source: "ScopesListCategory.qml";
87 source: "ScopesListCategory.qml";