1 | // Copyright (C) 2022 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #define QT_SQL_BUILD_REMOVED_API |
5 | |
6 | #include "qtsqlglobal.h" |
7 | |
8 | QT_USE_NAMESPACE |
9 | |
10 | #if QT_SQL_REMOVED_SINCE(6, 4) |
11 | |
12 | #endif // QT_SQL_REMOVED_SINCE(6, 4) |
13 | |
14 | #if QT_SQL_REMOVED_SINCE(6, 5) |
15 | |
16 | #if QT_CONFIG(sqlmodel) |
17 | |
18 | #include "qsqlquerymodel.h" |
19 | #include "qsqlquery.h" |
20 | |
21 | QSqlQuery QSqlQueryModel::query() const |
22 | { |
23 | QT_IGNORE_DEPRECATIONS(return query(QT6_CALL_NEW_OVERLOAD);) |
24 | } |
25 | |
26 | #include "qsqltablemodel.h" |
27 | |
28 | void QSqlTableModel::setQuery(const QSqlQuery &query) |
29 | { |
30 | QT_IGNORE_DEPRECATIONS(QSqlQueryModel::setQuery(query);) |
31 | } |
32 | |
33 | #endif // QT_CONFIG(sqlmodel) |
34 | |
35 | #endif // QT_SQL_REMOVED_SINCE(6, 5) |
36 | |
37 | #if QT_SQL_REMOVED_SINCE(6, 6) |
38 | |
39 | #include "qsqlresult.h" |
40 | #include <QtSql/private/qsqlresult_p.h> |
41 | |
42 | // #include <qotherheader.h> |
43 | // // implement removed functions from qotherheader.h |
44 | // order sections alphabetically to reduce chances of merge conflicts |
45 | |
46 | QList<QVariant> &QSqlResult::boundValues() const |
47 | { |
48 | Q_D(const QSqlResult); |
49 | return const_cast<QSqlResultPrivate *>(d)->values; |
50 | } |
51 | |
52 | #endif // QT_SQL_REMOVED_SINCE(6, 6) |
53 | |