Link the pageheader scope with the current scope
So that the activity indicator on search works again
commit29cb66dc0b859eaa574ce0d0eb74df4c9116094f
authorAlbert Astals <albert.astals@canonical.com>
dateWed 12 Feb 2014, 13:35 (13 years ago)
parent084e2eb
qml/Dash/DashContent.qml+2
@@ -156,9 +156,11 @@ Item {
156156
157157 PageHeader {
158158 id: pageHeader
159+ objectName: "pageHeader"
159160 width: parent.width
160161 searchEntryEnabled: true
161162 searchHistory: dashContent.searchHistory
163+ scope: dashContentList.currentItem.theScope
162164
163165 childItem: TabBar {
164166 id: tabBar
tests/qmltests/Dash/tst_DashContent.qml+2
@@ -250,6 +250,8 @@ Item {
250250 function test_scope_mapping(data) {
251251 dashContent.setCurrentScopeAtIndex(data.index, true, false);
252252 tryCompareFunction(get_current_item_object_name, data.objectName)
253+ var pageHeader = findChild(dashContent, "pageHeader");
254+ compare(pageHeader.scope, scopesModel.get(data.index));
253255 }
254256
255257 function test_is_active_data() {