peerplays_migrated/programs/light_client/qml/TransferForm.qml

65 lines
1.6 KiB
QML
Raw Normal View History

2015-07-13 18:16:02 +00:00
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.2
2015-07-14 19:06:00 +00:00
import Graphene.Client 0.1
import "."
2015-07-13 18:16:02 +00:00
Rectangle {
anchors.fill: parent
2015-07-14 19:06:00 +00:00
property alias senderAccount: senderPicker.account
property alias receiverAccount: recipientPicker.account
property GrapheneApplication app
signal finished
2015-07-13 18:16:02 +00:00
Component.onCompleted: console.log("Made a transfer form")
Component.onDestruction: console.log("Destroyed a transfer form")
2015-07-14 19:06:00 +00:00
ColumnLayout {
anchors.centerIn: parent
2015-07-14 19:06:00 +00:00
width: parent.width - Scaling.cm(2)
spacing: Scaling.cm(1)
2015-07-14 19:06:00 +00:00
AccountPicker {
id: senderPicker
width: parent.width
Component.onCompleted: setFocus()
placeholderText: qsTr("Sender")
}
AccountPicker {
id: recipientPicker
width: parent.width
placeholderText: qsTr("Recipient")
layoutDirection: Qt.RightToLeft
}
RowLayout {
2015-07-14 19:06:00 +00:00
width: parent.width
SpinBox {
Layout.preferredWidth: Scaling.cm(4)
Layout.minimumWidth: Scaling.cm(1.5)
enabled: senderPicker.account
minimumValue: 0
maximumValue: Number.POSITIVE_INFINITY
}
ComboBox {
Layout.minimumWidth: Scaling.cm(3)
enabled: senderPicker.account
model: ["CORE", "USD", "GOLD"]
}
Item { Layout.fillWidth: true }
Button {
text: qsTr("Cancel")
onClicked: finished()
}
2015-07-14 19:06:00 +00:00
Button {
text: qsTr("Transfer")
enabled: senderPicker.account
}
}
}
2015-07-13 18:16:02 +00:00
}