mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 22:02:32 -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
|
@ -63,6 +63,8 @@ ApplicationWindow
|
|||
property alias loaderSource: imageLoader.sourceComponent
|
||||
property string defaultLabel: "RetroShare"
|
||||
|
||||
property var searchBtnCb
|
||||
|
||||
states:
|
||||
[
|
||||
State
|
||||
|
@ -120,6 +122,7 @@ ApplicationWindow
|
|||
BtnIcon
|
||||
{
|
||||
property bool searchIconVisibility: false
|
||||
property var onClickCB: function (){}
|
||||
|
||||
id: searchIcon
|
||||
height: (coreReady)? parent.height - 10 : 0
|
||||
|
@ -130,8 +133,7 @@ ApplicationWindow
|
|||
visible: searchIconVisibility && coreReady
|
||||
onClicked:
|
||||
{
|
||||
stackView.push("qrc:/Contacts.qml",
|
||||
{'searching': true} )
|
||||
toolBar.searchBtnCb()
|
||||
}
|
||||
}
|
||||
MouseArea
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue