aboutsummaryrefslogtreecommitdiff
path: root/components/PasswordDialog.qml
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-09 20:38:46 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-09 20:38:46 +0200
commit3b1fe8d3ec855c4c73b2cf28409e896fecf51bab (patch)
tree89c2c9482f9636cbe202178ed62482774f3c9cf0 /components/PasswordDialog.qml
parentf34c47ec8d2af4431756b9fb4854006894ea3533 (diff)
parent77c37633aa8a9ac7c9181f6ba90b351d4a9d4ef9 (diff)
downloadmonzero-gui-3b1fe8d3ec855c4c73b2cf28409e896fecf51bab.tar.gz
monzero-gui-3b1fe8d3ec855c4c73b2cf28409e896fecf51bab.tar.xz
monzero-gui-3b1fe8d3ec855c4c73b2cf28409e896fecf51bab.zip
Merge pull request #109
77c3763 Switch OK/Cancel button positions (taushet)
Diffstat (limited to 'components/PasswordDialog.qml')
-rw-r--r--components/PasswordDialog.qml21
1 files changed, 9 insertions, 12 deletions
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()
}
}
}
}
-
}