status-desktop/ui/app/AppLayouts/Wallet/SendModal.qml

50 lines
1.1 KiB
QML
Raw Normal View History

2020-05-27 20:50:39 +00:00
import QtQuick 2.3
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1
import "../../../imports"
import "../../../shared"
2020-05-29 15:43:37 +00:00
import "./Components"
2020-05-27 20:50:39 +00:00
Item {
2020-05-29 15:43:37 +00:00
function open() {
popup.open()
sendModalContent.valueInput.text = ""
sendModalContent.valueInput.forceActiveFocus(Qt.MouseFocusReason)
sendModalContent.defaultAccount = walletModel.getDefaultAccount()
2020-05-27 20:50:39 +00:00
}
2020-05-29 15:43:37 +00:00
function close() {
popup.close()
2020-05-27 20:50:39 +00:00
}
2020-05-29 15:43:37 +00:00
Popup {
id: popup
modal: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
Overlay.modal: Rectangle {
color: "#60000000"
}
parent: Overlay.overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
width: 480
height: 510
background: Rectangle {
color: Theme.white
radius: Theme.radius
}
padding: 0
contentItem: SendModalContent {
id: sendModalContent
2020-05-27 20:50:39 +00:00
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
2020-05-29 15:43:37 +00:00