summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-06 12:19:14 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-06 12:19:14 +0800
commitde8f609f6003b9ce8917a23adb594da117cdb7e2 (patch)
tree7b1941ec763efb6d3bfaefd34a368104743c4cc9
parent05904fa4da0710f9f2b759046a446e1040656f8e (diff)
Simplify bank models syntax
-rw-r--r--CheckoutFlickable.ui.qml20
1 files changed, 6 insertions, 14 deletions
diff --git a/CheckoutFlickable.ui.qml b/CheckoutFlickable.ui.qml
index 2d5a47a..c6227d7 100644
--- a/CheckoutFlickable.ui.qml
+++ b/CheckoutFlickable.ui.qml
@@ -257,20 +257,12 @@ Flickable {
ComboBox {
font.pixelSize: 15
- model: ListModel {
- ListElement {
- text: "Please choose one"
- }
- ListElement {
- text: "Bank of America"
- }
- ListElement {
- text: "Bank of India"
- }
- ListElement {
- text: "Bank of London"
- }
- }
+ model: [
+ qsTr("Please choose one"),
+ qsTr("Bank of America"),
+ qsTr("Bank of India"),
+ qsTr("Bank of London")
+ ]
delegate: ItemDelegate {
contentItem: Text {
text: modelData