From b25abfde5443ae650df3a462377048b234364703 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 13:14:06 +0800 Subject: Use a custom key for combo box model --- CheckoutFlickable.ui.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CheckoutFlickable.ui.qml b/CheckoutFlickable.ui.qml index 66d6099..902a6a4 100644 --- a/CheckoutFlickable.ui.qml +++ b/CheckoutFlickable.ui.qml @@ -261,21 +261,21 @@ Flickable { font.pixelSize: 15 model: ListModel { ListElement { - text: "Please choose one" + label: "Please choose one" } ListElement { - text: "Bank of America" + label: "Bank of America" } ListElement { - text: "Bank of India" + label: "Bank of India" } ListElement { - text: "Bank of London" + label: "Bank of London" } } delegate: ItemDelegate { contentItem: Text { - text: modelData + text: label font.pixelSize: 14 } } -- cgit v1.2.3