From de8f609f6003b9ce8917a23adb594da117cdb7e2 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:19:14 +0800 Subject: Simplify bank models syntax --- CheckoutFlickable.ui.qml | 20 ++++++-------------- 1 file 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 -- cgit v1.2.3