diff options
Diffstat (limited to 'examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h')
-rw-r--r-- | examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h b/examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h index a6d24a4774..c7f9a154eb 100644 --- a/examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h +++ b/examples/quickcontrols/chattutorial/chapter4/sqlcontactmodel.h @@ -1,13 +1,17 @@ -// Copyright (C) 2017 The Qt Company Ltd. +// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef SQLCONTACTMODEL_H #define SQLCONTACTMODEL_H +#include <QQmlEngine> #include <QSqlQueryModel> class SqlContactModel : public QSqlQueryModel { + Q_OBJECT + QML_ELEMENT + public: SqlContactModel(QObject *parent = nullptr); }; |