2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-06-02 01:02:50 +00:00
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
2020-09-17 15:55:09 +00:00
|
|
|
import "../../../../shared/status"
|
2020-06-04 16:00:07 +00:00
|
|
|
import "../data/"
|
2020-06-02 01:02:50 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property string currency: "USD"
|
2020-07-22 20:40:32 +00:00
|
|
|
id: modalBody
|
|
|
|
anchors.fill: parent
|
2020-06-02 01:02:50 +00:00
|
|
|
|
2020-06-04 16:00:07 +00:00
|
|
|
ButtonGroup {
|
|
|
|
id: currencyGroup
|
|
|
|
}
|
|
|
|
|
2020-07-22 20:40:32 +00:00
|
|
|
ListView {
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 10
|
2020-06-02 01:02:50 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-22 20:40:32 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
clip: true
|
|
|
|
spacing: 10
|
|
|
|
id: tokenListView
|
|
|
|
model: Currencies {}
|
|
|
|
ScrollBar.vertical: ScrollBar { active: true }
|
|
|
|
|
|
|
|
delegate: Component {
|
|
|
|
Item {
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 10
|
|
|
|
width: parent.width
|
|
|
|
height: 52
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
text: name + " (" + code + ")"
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
2020-06-04 16:00:07 +00:00
|
|
|
|
2020-09-17 15:55:09 +00:00
|
|
|
StatusRadioButton {
|
2020-07-22 20:40:32 +00:00
|
|
|
checked: currency === key
|
2020-06-04 16:00:07 +00:00
|
|
|
anchors.right: parent.right
|
2020-07-22 20:40:32 +00:00
|
|
|
anchors.rightMargin: 4
|
|
|
|
ButtonGroup.group: currencyGroup
|
|
|
|
onClicked: { walletModel.setDefaultCurrency(key) }
|
2020-06-04 16:00:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-02 01:02:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|