diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 12:19:14 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 12:19:14 +0800 |
commit | de8f609f6003b9ce8917a23adb594da117cdb7e2 (patch) | |
tree | 7b1941ec763efb6d3bfaefd34a368104743c4cc9 | |
parent | 05904fa4da0710f9f2b759046a446e1040656f8e (diff) |
Simplify bank models syntax
-rw-r--r-- | CheckoutFlickable.ui.qml | 20 |
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 |