aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/abstractitemmodel/view.qml
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2021-11-11 16:36:38 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-12 15:41:53 +0000
commit0a86a3bdb4536b8d3b29e42fbca3cf46530cd9cc (patch)
treecbe7ece7ef05eeaf3ea458df3568e9f342117ad5 /examples/quick/models/abstractitemmodel/view.qml
parent3b0b18a5cd54b2f73c54de8530a49d4137d49e73 (diff)
Model examples: use new cmake api
The models directory contains 3 subdirectories with an example project in each. This patch updates the CMakeLists.txt files to use qt_add_qml_module() instead of the old qt_add_resources(). In order to achieve intercompatibility with both cmake and qmake, I had to do some slight modifications to both the .qrc files and the url path used to set the source to the QQuickView. Task-number: QTBUG-98130 Change-Id: I13d1c01a0eda181823f394bc2a4259ce98abd4f8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit a155b3bc3ee161fbb7ff1760781577700b0aafce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/models/abstractitemmodel/view.qml')
-rw-r--r--examples/quick/models/abstractitemmodel/view.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/models/abstractitemmodel/view.qml b/examples/quick/models/abstractitemmodel/view.qml
index 2b9f87df92..f80c4dca72 100644
--- a/examples/quick/models/abstractitemmodel/view.qml
+++ b/examples/quick/models/abstractitemmodel/view.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -47,7 +47,7 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick
//![0]
ListView {