69 lines
1.7 KiB
QML
69 lines
1.7 KiB
QML
|
import QtQuick 2.13
|
||
|
import QtQuick.Controls 2.13
|
||
|
import "../../../imports"
|
||
|
import "../../../shared"
|
||
|
|
||
|
ModalPopup {
|
||
|
property string address: ""
|
||
|
id: popup
|
||
|
|
||
|
title: qsTr("Receive")
|
||
|
height: 500
|
||
|
width: 500
|
||
|
|
||
|
|
||
|
Rectangle {
|
||
|
id: qrCodeBox
|
||
|
height: 240
|
||
|
width: 240
|
||
|
anchors.top: parent.top
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
radius: Style.current.radius
|
||
|
border.width: 1
|
||
|
border.color: Style.current.border
|
||
|
|
||
|
Image {
|
||
|
id: qrCodeImage
|
||
|
asynchronous: true
|
||
|
fillMode: Image.PreserveAspectFit
|
||
|
source: profileModel.qrCode(accountSelector.selectedAccount.address)
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
height: parent.height - Style.current.padding
|
||
|
width: parent.width - Style.current.padding
|
||
|
mipmap: true
|
||
|
smooth: false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
AccountSelector {
|
||
|
id: accountSelector
|
||
|
label: ""
|
||
|
showAccountDetails: false
|
||
|
accounts: walletModel.accounts
|
||
|
currency: walletModel.defaultCurrency
|
||
|
anchors.top: qrCodeBox.bottom
|
||
|
anchors.topMargin: Style.current.padding
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
width: 240
|
||
|
}
|
||
|
|
||
|
Input {
|
||
|
label: qsTr("Wallet address")
|
||
|
text: accountSelector.selectedAccount.address
|
||
|
anchors.top: accountSelector.bottom
|
||
|
anchors.topMargin: Style.current.padding
|
||
|
copyToClipboard: true
|
||
|
textField.readOnly: true
|
||
|
customHeight: 56
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/*##^##
|
||
|
Designer {
|
||
|
D{i:0;autoSize:true;height:480;width:640}
|
||
|
}
|
||
|
##^##*/
|
||
|
|