2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-05-27 20:50:39 +00:00
|
|
|
import "../../../imports"
|
|
|
|
import "../../../shared"
|
2020-06-04 20:56:44 +00:00
|
|
|
import "./components"
|
2020-05-27 20:50:39 +00:00
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Send"
|
|
|
|
title: qsTrId("command-button-send")
|
2020-06-29 16:37:36 +00:00
|
|
|
height: 600
|
2020-06-26 16:08:51 +00:00
|
|
|
|
|
|
|
onOpened: {
|
|
|
|
sendModalContent.amountInput.text = ""
|
2020-07-01 14:24:07 +00:00
|
|
|
sendModalContent.passwordInput.text = ""
|
2020-06-26 16:08:51 +00:00
|
|
|
sendModalContent.amountInput.forceActiveFocus(Qt.MouseFocusReason)
|
2020-05-27 20:50:39 +00:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
SendModalContent {
|
|
|
|
id: sendModalContent
|
2020-07-01 14:24:07 +00:00
|
|
|
closePopup: function () {
|
|
|
|
popup.close()
|
|
|
|
}
|
2020-05-27 20:50:39 +00:00
|
|
|
}
|
|
|
|
|
2020-06-26 16:08:51 +00:00
|
|
|
footer: StyledButton {
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: parent.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.rightMargin: Style.current.padding
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Send"
|
|
|
|
label: qsTrId("command-button-send")
|
2020-06-26 16:08:51 +00:00
|
|
|
|
|
|
|
onClicked: {
|
2020-06-29 17:05:34 +00:00
|
|
|
sendModalContent.send()
|
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
|
|
|
|