Merge pull request #2125

d37de31 sign: use radiobuttons to change modes (mmbyday)
This commit is contained in:
luigi1111 2019-04-30 15:25:05 -05:00
commit 5062886815
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -1,4 +1,4 @@
// Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2014-2019, The Monero Project
// //
// All rights reserved. // All rights reserved.
// //
@ -126,25 +126,31 @@ Rectangle {
color: MoneroComponents.Style.defaultFontColor color: MoneroComponents.Style.defaultFontColor
} }
RowLayout { ColumnLayout {
id: modeButtonsRow id: modeButtonsColumn
Layout.topMargin: 10 Layout.topMargin: 10
MoneroComponents.StandardButton { MoneroComponents.RadioButton {
id: handleMessageButton id: handleMessageButton
text: qsTr("Message") + translationManager.emptyString text: qsTr("Message") + translationManager.emptyString
enabled: fileMode fontSize: 16
checked: true
onClicked: { onClicked: {
checked = true;
handleFileButton.checked = false;
messageMode = true; messageMode = true;
fileMode = false; fileMode = false;
} }
} }
MoneroComponents.StandardButton { MoneroComponents.RadioButton {
id: handleFileButton id: handleFileButton
text: qsTr("File") + translationManager.emptyString text: qsTr("File") + translationManager.emptyString
enabled: messageMode fontSize: 16
checked: false
onClicked: { onClicked: {
checked = true;
handleMessageButton.checked = false;
fileMode = true; fileMode = true;
messageMode = false; messageMode = false;
} }