Set search button visibility only on contacts view

This commit is contained in:
Angela Mazzurco 2017-06-23 15:01:48 +02:00
parent a8b26298d3
commit d8eafaf9ea
2 changed files with 20 additions and 4 deletions

View file

@ -30,7 +30,13 @@ Item
property bool searching: false
onSearchingChanged: !searching && contactsSortWorker.sendMessage({})
Component.onCompleted: refreshAll()
property string objectName:"contactsView"
Component.onCompleted:
{
toolBar.state = "CONTACTSVIEW"
refreshAll()
}
onFocusChanged: focus && refreshAll()
WorkerScript