2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
//import QtQuick.Layouts 1.13
|
|
|
|
//import Qt.labs.platform 1.1
|
2020-06-02 01:02:50 +00:00
|
|
|
import "../../../imports"
|
|
|
|
import "../../../shared"
|
2021-01-28 11:04:10 +00:00
|
|
|
import "../../../shared/status"
|
2020-06-04 20:56:44 +00:00
|
|
|
import "./components"
|
2020-06-02 01:02:50 +00:00
|
|
|
|
2021-02-01 18:25:26 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
width: 480
|
|
|
|
height: 510
|
|
|
|
|
2020-06-02 01:02:50 +00:00
|
|
|
function open() {
|
|
|
|
popup.open()
|
2020-06-04 16:00:07 +00:00
|
|
|
setCurrencyModalContent.currency = walletModel.defaultCurrency
|
2020-06-02 01:02:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
popup.close()
|
|
|
|
}
|
|
|
|
|
2021-02-01 18:25:26 +00:00
|
|
|
title: qsTr("Set Currency")
|
2020-07-22 20:40:32 +00:00
|
|
|
|
2021-02-01 18:25:26 +00:00
|
|
|
SetCurrencyModalContent {
|
|
|
|
id: setCurrencyModalContent
|
|
|
|
}
|
2020-07-22 20:40:32 +00:00
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
footer: StatusButton {
|
2021-02-01 18:25:26 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
//% "Save"
|
2021-01-28 11:04:10 +00:00
|
|
|
text: qsTrId("save")
|
2021-02-01 18:25:26 +00:00
|
|
|
onClicked: {
|
|
|
|
console.log("TODO: apply all accounts")
|
|
|
|
popup.close()
|
2020-07-22 20:40:32 +00:00
|
|
|
}
|
2020-06-02 01:02:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|