From 4593239cfbd2a5279d038447adf9ae628ffe4f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 6 Feb 2023 12:57:49 +0800 Subject: Revert "Simplify bank models syntax" This reverts commit de8f609f6003b9ce8917a23adb594da117cdb7e2. --- CheckoutFlickable.ui.qml | 20 ++++++++++++++------ 1 file 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 -- cgit v1.2.3