aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/objectlistmodel/dataobject.cpp
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2021-11-11 16:36:38 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2021-11-12 12:24:29 +0100
commita155b3bc3ee161fbb7ff1760781577700b0aafce (patch)
tree81561c7197ff7c80c3c5185c93f65277d894bfe0 /examples/quick/models/objectlistmodel/dataobject.cpp
parentbdbc91cb90e9858cddc23da90ddd659262faa068 (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 Pick-to: 6.2 Change-Id: I13d1c01a0eda181823f394bc2a4259ce98abd4f8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/models/objectlistmodel/dataobject.cpp')
-rw-r--r--examples/quick/models/objectlistmodel/dataobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/models/objectlistmodel/dataobject.cpp b/examples/quick/models/objectlistmodel/dataobject.cpp
index 6963d75c42..354b9d74b4 100644
--- a/examples/quick/models/objectlistmodel/dataobject.cpp
+++ b/examples/quick/models/objectlistmodel/dataobject.cpp
@@ -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.