diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2022-09-22 15:25:41 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-26 01:36:27 +0000 |
commit | 1e07b9a91794f44655035546ddfbd6f6cb21c8a0 (patch) | |
tree | 5a40b7e46373b1d9dd110c5280ac8cf44d591131 /examples/quickcontrols2/contactlist/contactlist.qml | |
parent | d721c094a86467ae15ea0c4e90218bc3a152dc00 (diff) |
Contactlist example: use qt_add_qml_module() in CMakeLists.txt
This patch also includes a small change to a signal handler,
in order to avoid a warning message.
Task-number: QTBUG-98130
Change-Id: I2df71f397a4a8cb43912b90c0c89b297f5463568
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit ec9312687e36ac06faaf4d4cdbd2528cc297a849)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quickcontrols2/contactlist/contactlist.qml')
-rw-r--r-- | examples/quickcontrols2/contactlist/contactlist.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols2/contactlist/contactlist.qml b/examples/quickcontrols2/contactlist/contactlist.qml index aa8ab08e65..28f887f2db 100644 --- a/examples/quickcontrols2/contactlist/contactlist.qml +++ b/examples/quickcontrols2/contactlist/contactlist.qml @@ -16,7 +16,7 @@ ApplicationWindow { ContactDialog { id: contactDialog - onFinished: { + onFinished: function(fullName, address, city, number) { if (currentContact === -1) contactView.model.append(fullName, address, city, number) else |