mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Close drawe when click your avatar image to show details
This commit is contained in:
parent
a9e4271c35
commit
b4ee63ad9b
@ -25,7 +25,7 @@ Item
|
|||||||
id: compRoot
|
id: compRoot
|
||||||
|
|
||||||
property string gxs_id
|
property string gxs_id
|
||||||
|
signal clicked ()
|
||||||
|
|
||||||
height: 130
|
height: 130
|
||||||
width: height
|
width: height
|
||||||
@ -90,6 +90,10 @@ Item
|
|||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: showDetails()
|
onClicked:
|
||||||
|
{
|
||||||
|
compRoot.clicked()
|
||||||
|
showDetails()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ Drawer
|
|||||||
anchors.margins: styles.avatarMargins
|
anchors.margins: styles.avatarMargins
|
||||||
anchors.horizontalCenter: header.horizontalCenter
|
anchors.horizontalCenter: header.horizontalCenter
|
||||||
anchors.top: header.top
|
anchors.top: header.top
|
||||||
|
onClicked: drawer.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
@ -73,7 +74,7 @@ Drawer
|
|||||||
{
|
{
|
||||||
id: gxsText
|
id: gxsText
|
||||||
text: (ChatCache.contactsCache.own)?ChatCache.contactsCache.own.gxs_id : ""
|
text: (ChatCache.contactsCache.own)?ChatCache.contactsCache.own.gxs_id : ""
|
||||||
height: contentHeight
|
// height: contentHeight
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
width: header.width
|
width: header.width
|
||||||
anchors.top: nickText.bottom
|
anchors.top: nickText.bottom
|
||||||
|
Loading…
Reference in New Issue
Block a user