@@ -17,13 +17,14 @@
1717import QtQuick 2.2
1818import Ubuntu.Components 1.1
1919import Ubuntu.Components.ListItems 1.0
20+import "Filters" as Filters
2021
2122Item {
2223 id: root
2324
2425 readonly property real searchesHeight: recentSearchesRepeater.count > 0 ? searchColumn.height + recentSearchesLabels.height + recentSearchesLabels.anchors.margins : 0
2526
26− implicitHeight: searchesHeight + dashNavigation.implicitHeight
27+ implicitHeight: searchesHeight + dashNavigation.implicitHeight + primaryFilter.height
2728
2829 // Set by parent
2930 property ListModel searchHistory
@@ -32,7 +33,7 @@ Item {
3233 property real windowHeight
3334
3435 // Used by PageHeader
35− readonly property bool hasContents: searchHistory.count > 0 || scope && scope.hasNavigation
36+ readonly property bool hasContents: searchHistory.count > 0 || scope && scope.hasNavigation || scope && scope.primaryNavigationFilter
3637
3738 signal historyItemClicked(string text)
3839 signal dashNavigationLeafClicked()
@@ -110,4 +111,21 @@ Item {
110111
111112 onLeafClicked: root.dashNavigationLeafClicked();
112113 }
114+
115+ Filters.FilterWidgetFactory {
116+ id: primaryFilter
117+ active: scope && !scope.hasNavigation
118+
119+ property var filter: active ? scope.primaryNavigationFilter : null
120+
121+ anchors {
122+ top: recentSearchesRepeater.count > 0 ? searchColumn.bottom : parent.top
123+ left: parent.left
124+ right: parent.right
125+ }
126+
127+ widgetId: filter ? filter.filterId : ""
128+ widgetType: filter ? filter.filterType : -1
129+ widgetData: filter
130+ }
113131}