mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
Toggle search contacts field using search icon on toolbar
This commit is contained in:
parent
d8eafaf9ea
commit
353b34fcab
3 changed files with 11 additions and 4 deletions
|
@ -35,6 +35,7 @@ Item
|
|||
Component.onCompleted:
|
||||
{
|
||||
toolBar.state = "CONTACTSVIEW"
|
||||
toolBar.searchBtnCb = toggleSearchBox
|
||||
refreshAll()
|
||||
}
|
||||
onFocusChanged: focus && refreshAll()
|
||||
|
@ -46,6 +47,11 @@ Item
|
|||
onMessage: contactsListModel.json = JSON.stringify(messageObject)
|
||||
}
|
||||
|
||||
function toggleSearchBox (){
|
||||
if (searching) searching = false
|
||||
else searching = true
|
||||
}
|
||||
|
||||
function refreshAll()
|
||||
{
|
||||
refreshOwn()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue