summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 14:53:08 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-12 16:28:51 +0000
commit8efe5f6903834cab1a68304036f4d0e4aa379b8a (patch)
tree9ac885c5189c5fcd35f7e6d1d23a32c35370de1c /tests
parent180e41521cedc6edd69e78b22d76364db4f5c7bd (diff)
Disable warnings for tests using QSqlQuery assignment
Copying is deprecated as of 14f9f00fdb2dc428610c08e3d9d03e38e9602166. Change-Id: I235d45ff6769a29a4fdfd888c20dd9fe2fe81346 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 5f31da62bb45303b9a0f37a98c018aa710809158) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
index ad7baeb9a9..d43a922ec8 100644
--- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
@@ -1478,7 +1478,10 @@ void tst_QSqlQuery::forwardOnly()
QVERIFY( q.at() == QSql::AfterLastRow );
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
QSqlQuery q2 = q;
+QT_WARNING_POP
QVERIFY( q2.isForwardOnly() );
@@ -3875,6 +3878,8 @@ void tst_QSqlQuery::QTBUG_21884()
*/
void tst_QSqlQuery::QTBUG_16967()
{
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
QSqlQuery q2;
QFETCH(QString, dbName);
{
@@ -3920,6 +3925,7 @@ void tst_QSqlQuery::QTBUG_16967()
db.close();
QCOMPARE(db.lastError().type(), QSqlError::NoError);
}
+QT_WARNING_POP
}
/**