mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 03:16:18 -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
|
signal released
|
||||||
|
|
||||||
property var imgUrl: ""
|
property var imgUrl: ""
|
||||||
|
property alias fillMode: image.fillMode
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
id: image
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: imgUrl
|
source: imgUrl
|
||||||
|
|
||||||
|
@ -65,6 +65,15 @@ ApplicationWindow
|
|||||||
|
|
||||||
property var searchBtnCb
|
property var searchBtnCb
|
||||||
|
|
||||||
|
function openMainPage ()
|
||||||
|
{
|
||||||
|
if (stackView.currentItem.objectName != "contactsView" )
|
||||||
|
{
|
||||||
|
stackView.push("qrc:/Contacts.qml")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
states:
|
states:
|
||||||
[
|
[
|
||||||
State
|
State
|
||||||
@ -103,10 +112,13 @@ ApplicationWindow
|
|||||||
Component
|
Component
|
||||||
{
|
{
|
||||||
id: rsIcon
|
id: rsIcon
|
||||||
Image
|
BtnIcon
|
||||||
{
|
{
|
||||||
|
height: imageLoader.height
|
||||||
|
width: imageLoader.height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: "icons/retroshare06.png"
|
imgUrl: "/icons/retroshare06.png"
|
||||||
|
onClicked:{ toolBar.openMainPage() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,8 +128,13 @@ ApplicationWindow
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: imageLoader.right
|
anchors.left: imageLoader.right
|
||||||
anchors.leftMargin: 20
|
anchors.leftMargin: 20
|
||||||
}
|
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: { toolBar.openMainPage() }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
BtnIcon
|
BtnIcon
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user