From b4ee63ad9be6cc2584c792b1b9feedb0bdcbf1b9 Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Fri, 23 Jun 2017 16:09:47 +0200 Subject: [PATCH] Close drawe when click your avatar image to show details --- retroshare-qml-app/src/components/AvatarOrColorHash.qml | 8 ++++++-- retroshare-qml-app/src/components/SideBar.qml | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/retroshare-qml-app/src/components/AvatarOrColorHash.qml b/retroshare-qml-app/src/components/AvatarOrColorHash.qml index 04dbda40f..f34d288be 100644 --- a/retroshare-qml-app/src/components/AvatarOrColorHash.qml +++ b/retroshare-qml-app/src/components/AvatarOrColorHash.qml @@ -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() + } } } diff --git a/retroshare-qml-app/src/components/SideBar.qml b/retroshare-qml-app/src/components/SideBar.qml index 6393afbcc..36080dcb7 100644 --- a/retroshare-qml-app/src/components/SideBar.qml +++ b/retroshare-qml-app/src/components/SideBar.qml @@ -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