Pass the scope search hint up to the search line
commit0f2d872143822da8b892cb48e5ee78d9ca8dcab9
authorAlbert Astals <albert.astals@canonical.com>
dateFri 25 Jul 2014, 13:29 (12 years ago)
parent3d1d3f0
qml/Components/PageHeader.qml+1
@@ -32,6 +32,7 @@ Item {
3232 property bool searchEntryEnabled: false
3333 property ListModel searchHistory: SearchHistoryModel
3434 property alias searchQuery: searchTextField.text
35+ property alias searchHint: searchTextField.placeholderText
3536 property bool searchInProgress: false
3637
3738 property alias bottomItem: bottomContainer.children
qml/Dash/GenericScopeView.qml+1
@@ -394,6 +394,7 @@ FocusScope {
394394 objectName: "scopePageHeader"
395395 width: parent.width
396396 title: scopeView.scope ? scopeView.scope.name : ""
397+ searchHint: scopeView.scope && scopeView.scope.searchHint || i18n.tr("Search")
397398 showBackButton: scopeView.hasBackAction
398399 searchEntryEnabled: true
399400 searchInProgress: scopeView.scope ? scopeView.scope.searchInProgress : false