From 77c37633aa8a9ac7c9181f6ba90b351d4a9d4ef9 Mon Sep 17 00:00:00 2001 From: taushet Date: Sat, 5 Nov 2016 14:35:21 +0100 Subject: Switch OK/Cancel button positions As per conventions, the 'OK' button should be rightmost. --- components/PasswordDialog.qml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'components') diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 79765f7d..7d1a5bd6 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -101,7 +101,6 @@ Window { root.accepted() root.close() } - Keys.onEscapePressed: { root.rejected() root.close() @@ -132,41 +131,39 @@ Window { id: buttons spacing: 60 Layout.alignment: Qt.AlignHCenter - + MoneroComponents.StandardButton { - id: okButton + id: cancelButton width: 120 fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" pressedColor: "#FF4304" - text: qsTr("Ok") - KeyNavigation.tab: cancelButton + text: qsTr("Cancel") + KeyNavigation.tab: passwordInput onClicked: { - root.accepted() + root.rejected() root.close() } } - MoneroComponents.StandardButton { - id: cancelButton + id: okButton width: 120 fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" pressedColor: "#FF4304" - text: qsTr("Cancel") - KeyNavigation.tab: passwordInput + text: qsTr("Ok") + KeyNavigation.tab: cancelButton onClicked: { - root.rejected() + root.accepted() root.close() } } } } - } -- cgit v1.2.3