Disable warnings for tests using QSqlQuery assignment

Copying is deprecated as of 14f9f00fdb.

Pick-to: 6.1
Change-Id: I235d45ff6769a29a4fdfd888c20dd9fe2fe81346
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Volker Hilsheimer 2021-04-11 14:53:08 +02:00
parent ed8429495e
commit 5f31da62bb

View File

@ -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
}
/**