From 05efa54598e40f1167f7c5f1446ee798fed8e170 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Wed, 15 Jul 2015 17:55:12 -0400 Subject: [PATCH] [GUI] Add memo field to transfer form --- programs/light_client/qml/TransferForm.qml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/programs/light_client/qml/TransferForm.qml b/programs/light_client/qml/TransferForm.qml index fc678543..18ac15bf 100644 --- a/programs/light_client/qml/TransferForm.qml +++ b/programs/light_client/qml/TransferForm.qml @@ -22,28 +22,33 @@ Rectangle { ColumnLayout { anchors.centerIn: parent width: parent.width - Scaling.cm(2) - spacing: Scaling.cm(1) + spacing: Scaling.mm(5) AccountPicker { id: senderPicker - width: parent.width + Layout.fillWidth: true Layout.minimumWidth: Scaling.cm(5) Component.onCompleted: setFocus() placeholderText: qsTr("Sender") showBalance: balances? balances.reduce(function(foundIndex, balance, index) { if (foundIndex >= 0) return foundIndex - return balance.type.symbol === assetBox.currentText? index : -1 + return balance.type.symbol === assetField.currentText? index : -1 }, -1) : -1 } AccountPicker { id: recipientPicker - width: parent.width + Layout.fillWidth: true Layout.minimumWidth: Scaling.cm(5) placeholderText: qsTr("Recipient") layoutDirection: Qt.RightToLeft } + TextField { + id: memoField + Layout.fillWidth: true + placeholderText: qsTr("Memo") + } RowLayout { - width: parent.width + Layout.fillWidth: true SpinBox { id: amountField Layout.preferredWidth: Scaling.cm(4) @@ -57,7 +62,7 @@ Rectangle { senderPicker.balances[senderPicker.showBalance] : null } ComboBox { - id: assetBox + id: assetField Layout.minimumWidth: Scaling.cm(3) enabled: Boolean(senderPicker.balances) model: enabled? senderPicker.balances.filter(function(balance) { return balance.amount > 0 })