diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-03 16:55:09 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-03 16:55:09 +0200 |
| commit | 5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5 (patch) | |
| tree | 9ecc492023fd92c80ae3cc6933ef7d983e9d5e9d /components | |
| parent | 988e2992907459bdba5d421a88e28760eb205557 (diff) | |
| parent | 01e735cc0e56c1e68bea3618fbc0cccc7bf88a29 (diff) | |
| download | monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.tar.gz monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.tar.xz monzero-gui-5db9bd9fdd6e5a0cd1f2c631f7bad17f72e053b5.zip | |
Merge pull request #515
01e735c move OK button to the right in confirm exit dialog (Jaquee)
bce496b confirm daemon running on exit (Jaquee)
Diffstat (limited to 'components')
| -rw-r--r-- | components/StandardDialog.qml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml index 03c64a64..42760f5c 100644 --- a/components/StandardDialog.qml +++ b/components/StandardDialog.qml @@ -45,6 +45,9 @@ Window { property alias cancelVisible: cancelButton.visible property alias okVisible: okButton.visible property alias textArea: dialogContent + property alias okText: okButton.text + property alias cancelText: cancelButton.text + property var icon // same signals as Dialog has @@ -99,34 +102,34 @@ Window { 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") onClicked: { root.close() - root.accepted() - + root.rejected() } } MoneroComponents.StandardButton { - id: cancelButton + id: okButton width: 120 fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" pressedColor: "#FF4304" - text: qsTr("Cancel") + text: qsTr("Ok") + KeyNavigation.tab: cancelButton onClicked: { root.close() - root.rejected() + root.accepted() + } } } |
