Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
removed_api.cpp
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#define QT_SQL_BUILD_REMOVED_API
6
7#include "qtsqlglobal.h"
8
9QT_USE_NAMESPACE
10
11#if QT_SQL_REMOVED_SINCE(6, 4)
12
13#endif // QT_SQL_REMOVED_SINCE(6, 4)
14
15#if QT_SQL_REMOVED_SINCE(6, 5)
16
17#if QT_CONFIG(sqlmodel)
18
19#include "qsqlquerymodel.h"
20#include "qsqlquery.h"
21
22QSqlQuery QSqlQueryModel::query() const
23{
24 QT_IGNORE_DEPRECATIONS(return query(QT6_CALL_NEW_OVERLOAD);)
25}
26
27#include "qsqltablemodel.h"
28
29void QSqlTableModel::setQuery(const QSqlQuery &query)
30{
31 QT_IGNORE_DEPRECATIONS(QSqlQueryModel::setQuery(query);)
32}
33
34#endif // QT_CONFIG(sqlmodel)
35
36#endif // QT_SQL_REMOVED_SINCE(6, 5)
37
38#if QT_SQL_REMOVED_SINCE(6, 6)
39
40#include "qsqlresult.h"
41#include <QtSql/private/qsqlresult_p.h>
42
43// #include <qotherheader.h>
44// // implement removed functions from qotherheader.h
45// order sections alphabetically to reduce chances of merge conflicts
46
47QList<QVariant> &QSqlResult::boundValues() const
48{
49 Q_D(const QSqlResult);
50 return const_cast<QSqlResultPrivate *>(d)->values;
51}
52
53#endif // QT_SQL_REMOVED_SINCE(6, 6)
54
55#if QT_SQL_REMOVED_SINCE(6, 8)
56
57#include "qsqlrecord.h"
58#include "qsqlfield.h"
59
60// #include <qotherheader.h>
61// // implement removed functions from qotherheader.h
62// order sections alphabetically to reduce chances of merge conflicts
63
64bool QSqlRecord::contains(const QString &name) const
65{
66 return contains(QStringView(name));
67}
68
69QSqlField QSqlRecord::field(const QString &name) const
70{
71 return field(QStringView(name));
72}
73
74int QSqlRecord::indexOf(const QString &name) const
75{
76 return indexOf(QStringView(name));
77}
78
79bool QSqlRecord::isGenerated(const QString &name) const
80{
81 return isGenerated(QStringView(name));
82}
83
84bool QSqlRecord::isNull(const QString &name) const
85{
86 return isNull(QStringView(name));
87}
88
89void QSqlRecord::setGenerated(const QString &name, bool generated)
90{
91 setGenerated(QStringView(name), generated);
92}
93
94void QSqlRecord::setNull(const QString &name)
95{
96 setNull(QStringView(name));
97}
98
99void QSqlRecord::setValue(const QString &name, const QVariant &val)
100{
101 setValue(QStringView(name), val);
102}
103
104QVariant QSqlRecord::value(const QString &name) const
105{
106 return value(QStringView(name));
107}
108
109
110#include "qsqlquery.h"
111
112bool QSqlQuery::isNull(const QString &name) const
113{
114 return isNull(QStringView(name));
115}
116
117QVariant QSqlQuery::value(const QString &name) const
118{
119 return value(QStringView(name));
120}
121
122#endif // QT_SQL_REMOVED_SINCE(6, 8)
123
124#if QT_SQL_REMOVED_SINCE(6, 10)
125
126#include "qsqldatabase.h"
127
128const char *QSqlDatabase::defaultConnection = QSqlDatabaseDefaultConnectionName::defaultConnection;
129
130// #include <qotherheader.h>
131// // implement removed functions from qotherheader.h
132// order sections alphabetically to reduce chances of merge conflicts
133
134#endif // QT_SQL_REMOVED_SINCE(6, 10)