Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#define QT_SQL_BUILD_REMOVED_API
5
6#include "qtsqlglobal.h"
7
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
22{
24}
25
26#include "qsqltablemodel.h"
27
29{
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
46QList<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)
const QSqlQuery & query(QT6_DECL_NEW_OVERLOAD) const
Returns a reference to the const QSqlQuery object associated with this model.
void setQuery(QSqlQuery &&query)
Resets the model and sets the data provider to be the given query.
The QSqlQuery class provides a means of executing and manipulating SQL statements.
Definition qsqlquery.h:24
The QSqlResult class provides an abstract interface for accessing data from specific SQL databases.
Definition qsqlresult.h:22
QVariantList & boundValues(QT6_DECL_NEW_OVERLOAD)
#define QT_IGNORE_DEPRECATIONS(statement)
GLenum GLsizei GLsizei GLint * values
[15]
GLenum query
#define QT6_CALL_NEW_OVERLOAD