Close drawe when click your avatar image to show details

This commit is contained in:
Angela Mazzurco 2017-06-23 16:09:47 +02:00
parent a9e4271c35
commit b4ee63ad9b
2 changed files with 8 additions and 3 deletions

View File

@ -25,7 +25,7 @@ Item
id: compRoot
property string gxs_id
signal clicked ()
height: 130
width: height
@ -90,6 +90,10 @@ Item
MouseArea
{
anchors.fill: parent
onClicked: showDetails()
onClicked:
{
compRoot.clicked()
showDetails()
}
}
}

View File

@ -51,6 +51,7 @@ Drawer
anchors.margins: styles.avatarMargins
anchors.horizontalCenter: header.horizontalCenter
anchors.top: header.top
onClicked: drawer.close()
}
Text
@ -73,7 +74,7 @@ Drawer
{
id: gxsText
text: (ChatCache.contactsCache.own)?ChatCache.contactsCache.own.gxs_id : ""
height: contentHeight
// height: contentHeight
wrapMode: Text.WrapAnywhere
width: header.width
anchors.top: nickText.bottom