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 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()
}
} }
} }

View File

@ -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