diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 12:57:49 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-06 12:57:49 +0800 |
commit | 4593239cfbd2a5279d038447adf9ae628ffe4f62 (patch) | |
tree | dd79abaedf6fab43dc5ccaa881e8a75988ef891e | |
parent | 9e34ab20b71e3aadf7754fe70e2d075bce2f52ae (diff) |
Revert "Simplify bank models syntax"
This reverts commit de8f609f6003b9ce8917a23adb594da117cdb7e2.
-rw-r--r-- | CheckoutFlickable.ui.qml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/CheckoutFlickable.ui.qml b/CheckoutFlickable.ui.qml index 5789f88..66d6099 100644 --- a/CheckoutFlickable.ui.qml +++ b/CheckoutFlickable.ui.qml @@ -259,12 +259,20 @@ Flickable { ComboBox { id: banks font.pixelSize: 15 - model: [ - qsTr("Please choose one"), - qsTr("Bank of America"), - qsTr("Bank of India"), - qsTr("Bank of London") - ] + model: ListModel { + ListElement { + text: "Please choose one" + } + ListElement { + text: "Bank of America" + } + ListElement { + text: "Bank of India" + } + ListElement { + text: "Bank of London" + } + } delegate: ItemDelegate { contentItem: Text { text: modelData |