2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
2020-05-29 15:43:37 +00:00
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
|
|
|
|
|
|
|
Item {
|
2020-06-26 16:08:51 +00:00
|
|
|
id: sendModalContent
|
|
|
|
property alias amountInput: txtAmount
|
|
|
|
property alias amountText: txtAmount.text
|
|
|
|
property alias fromText: txtFrom.text
|
|
|
|
property alias toText: txtTo.text
|
|
|
|
property alias passwordText: txtPassword.text
|
2020-05-29 17:53:39 +00:00
|
|
|
property string defaultAccount: "0x1234"
|
2020-05-29 15:43:37 +00:00
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2020-05-29 15:43:37 +00:00
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
Input {
|
|
|
|
id: txtAmount
|
|
|
|
label: qsTr("Amount")
|
|
|
|
icon: "../../../img/token-icons/eth.svg"
|
2020-05-29 15:43:37 +00:00
|
|
|
anchors.top: parent.top
|
2020-06-26 16:08:51 +00:00
|
|
|
placeholderText: qsTr("Enter ETH")
|
2020-05-29 15:43:37 +00:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
Input {
|
|
|
|
id: txtFrom
|
|
|
|
label: qsTr("From account")
|
|
|
|
text: defaultAccount
|
|
|
|
placeholderText: qsTr("Send from (account)")
|
|
|
|
anchors.top: txtAmount.bottom
|
2020-05-29 15:43:37 +00:00
|
|
|
anchors.topMargin: Theme.padding
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
Input {
|
|
|
|
id: txtTo
|
|
|
|
label: qsTr("Recipient")
|
|
|
|
text: defaultAccount
|
|
|
|
placeholderText: qsTr("Send to")
|
|
|
|
anchors.top: txtFrom.bottom
|
|
|
|
anchors.topMargin: Theme.padding
|
2020-05-29 15:43:37 +00:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
Input {
|
|
|
|
id: txtPassword
|
|
|
|
label: qsTr("Password")
|
|
|
|
placeholderText: qsTr("Enter Password")
|
|
|
|
anchors.top: txtTo.bottom
|
|
|
|
anchors.topMargin: Theme.padding
|
|
|
|
textField.echoMode: TextInput.Password
|
2020-05-29 15:43:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-05-29 18:02:06 +00:00
|
|
|
D{i:0;autoSize:true;formeditorColor:"#ffffff";formeditorZoom:0.75;height:480;width:640}
|
2020-05-29 15:43:37 +00:00
|
|
|
}
|
|
|
|
##^##*/
|