QSqlQuery copy constructor deprecated in Qt6.2 (#4771)

The QSqlQuery assignment and copy constructor are deprecated since Qt6.2, and will be removed in Qt7, see https://doc.qt.io/qt-6/qsqlquery-obsolete.html
This commit is contained in:
Paul Johnson
2025-12-24 11:28:05 +00:00
committed by GitHub
parent 4eaec533aa
commit 8a19c38b3a

View File

@@ -818,7 +818,7 @@ TrainDB::getWorkoutModel
query.exec();
QSqlQueryModel *model = new QSqlQueryModel();
model->setQuery(query);
model->setQuery(std::move(query));
while (model->canFetchMore(QModelIndex())) {
model->fetchMore(QModelIndex());
}