QSqlQueryModel: guard the definition of deprecated method

... to prevent compilation errors when built with
QT_DISABLE_DEPRECATED_BEFORE >= 0x060200

This commit amends 14f9f00fdb

Task-number: QTBUG-105048
Pick-to: 6.4 6.3 6.2
Change-Id: I33c586508353ccb4c0af3f5da0cdaf9abe9f590e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
bb10
Ivan Solovev 2022-07-21 17:56:09 +02:00
parent 5b2b30a9c7
commit 7ba39fff8d
1 changed files with 2 additions and 1 deletions

View File

@ -384,7 +384,7 @@ void QSqlQueryModel::queryChange()
// do nothing
}
#if QT_DEPRECATED_SINCE(6, 2)
/*!
\deprecated [6.2] Use the \c{setQuery(QSqlQuery &&query)} overload instead.
\overload
@ -396,6 +396,7 @@ void QSqlQueryModel::setQuery(const QSqlQuery &query)
QT_IGNORE_DEPRECATIONS(QSqlQuery copy = query;)
setQuery(std::move(copy));
}
#endif // QT_DEPRECATED_SINCE(6, 2)
/*!
Resets the model and sets the data provider to be the given \a