From 01054f25498bf2213e265fa60430a50a2ba8de05 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 7 Nov 2018 20:16:33 +0000 Subject: left-panel: implement wallet 'Logout' shortcut button --- LeftPanel.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'LeftPanel.qml') diff --git a/LeftPanel.qml b/LeftPanel.qml index e689ec13..9858a2c9 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -144,6 +144,34 @@ Rectangle { font.bold: true color: "#ff9323" } + + Rectangle { + height: (logoutImage.height + 8) * scaleRatio + width: (logoutImage.width + 8) * scaleRatio + color: "transparent" + anchors.right: parent.right + anchors.rightMargin: 8 + anchors.top: parent.top + anchors.topMargin: 25 + + Image { + id: logoutImage + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + height: 16 * scaleRatio + width: 13 * scaleRatio + source: "../images/logout.png" + } + + MouseArea{ + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + appWindow.showWizard(); + } + } + } } Item { -- cgit v1.2.3