mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
Toolbar return to contacts view when click to icon or label
This commit is contained in:
parent
b4ee63ad9b
commit
c94672118e
@ -8,9 +8,10 @@ Item {
|
||||
signal released
|
||||
|
||||
property var imgUrl: ""
|
||||
property alias fillMode: image.fillMode
|
||||
|
||||
Image {
|
||||
|
||||
id: image
|
||||
anchors.fill: parent
|
||||
source: imgUrl
|
||||
|
||||
|
@ -65,6 +65,15 @@ ApplicationWindow
|
||||
|
||||
property var searchBtnCb
|
||||
|
||||
function openMainPage ()
|
||||
{
|
||||
if (stackView.currentItem.objectName != "contactsView" )
|
||||
{
|
||||
stackView.push("qrc:/Contacts.qml")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
states:
|
||||
[
|
||||
State
|
||||
@ -103,10 +112,13 @@ ApplicationWindow
|
||||
Component
|
||||
{
|
||||
id: rsIcon
|
||||
Image
|
||||
BtnIcon
|
||||
{
|
||||
height: imageLoader.height
|
||||
width: imageLoader.height
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: "icons/retroshare06.png"
|
||||
imgUrl: "/icons/retroshare06.png"
|
||||
onClicked:{ toolBar.openMainPage() }
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,8 +128,13 @@ ApplicationWindow
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: imageLoader.right
|
||||
anchors.leftMargin: 20
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: { toolBar.openMainPage() }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BtnIcon
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user