aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-03-08 20:54:11 +0100
committerJaquee <jaquee.monero@gmail.com>2017-03-11 15:36:27 +0100
commit6a666ead394d9d1222dcdbab44afae01bae90790 (patch)
tree40de712dc695bf8c399dd2550bfc1413c5437782
parent1918c5e24a3c61260c5d16cd67921207bf984db2 (diff)
downloadmonzero-gui-6a666ead394d9d1222dcdbab44afae01bae90790.tar.gz
monzero-gui-6a666ead394d9d1222dcdbab44afae01bae90790.tar.xz
monzero-gui-6a666ead394d9d1222dcdbab44afae01bae90790.zip
fix dynamic width on send btn
-rw-r--r--pages/Transfer.qml41
1 files changed, 23 insertions, 18 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index f0341a03..91ece694 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -375,31 +375,36 @@ Rectangle {
return amount_ok && address_ok && payment_id_ok
}
- StandardButton {
- id: sendButton
+
+ RowLayout {
anchors.left: parent.left
anchors.top: descriptionLine.bottom
anchors.leftMargin: 17
anchors.topMargin: 17
- width: 60
- text: qsTr("Send") + translationManager.emptyString
- shadowReleasedColor: "#FF4304"
- shadowPressedColor: "#B32D00"
- releasedColor: "#FF6C3C"
- pressedColor: "#FF4304"
- enabled : !appWindow.viewOnly && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.testnet)
- onClicked: {
- console.log("Transfer: paymentClicked")
- var priority = priorityModel.get(priorityDropdown.currentIndex).priority
- console.log("priority: " + priority)
- console.log("amount: " + amountLine.text)
- addressLine.text = addressLine.text.trim()
- paymentIdLine.text = paymentIdLine.text.trim()
- root.paymentClicked(addressLine.text, paymentIdLine.text, amountLine.text, scaleValueToMixinCount(privacyLevelItem.fillLevel),
- priority, descriptionLine.text)
+ StandardButton {
+ id: sendButton
+ text: qsTr("Send") + translationManager.emptyString
+ shadowReleasedColor: "#FF4304"
+ shadowPressedColor: "#B32D00"
+ releasedColor: "#FF6C3C"
+ pressedColor: "#FF4304"
+ enabled : !appWindow.viewOnly && pageRoot.checkInformation(amountLine.text, addressLine.text, paymentIdLine.text, appWindow.persistentSettings.testnet)
+ onClicked: {
+ console.log("Transfer: paymentClicked")
+ var priority = priorityModel.get(priorityDropdown.currentIndex).priority
+ console.log("priority: " + priority)
+ console.log("amount: " + amountLine.text)
+ addressLine.text = addressLine.text.trim()
+ paymentIdLine.text = paymentIdLine.text.trim()
+ root.paymentClicked(addressLine.text, paymentIdLine.text, amountLine.text, scaleValueToMixinCount(privacyLevelItem.fillLevel),
+ priority, descriptionLine.text)
+
+ }
}
}
+
+
} // pageRoot
Rectangle {