QtSql: includemocs

Including moc files directly into their classes' TU tends to improve
codegen and enables extended compiler warnings, e.g. about unused
private functions or fields.

Pick-to: 6.3 6.2 5.15
Task-number: QTBUG-102886
Change-Id: Id758d672710ba998595824645e3e16e00537781d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2022-04-27 20:21:27 +02:00
parent 82cf06fc21
commit e21df99708
5 changed files with 10 additions and 0 deletions

View File

@ -844,3 +844,5 @@ int QSqlDriver::maximumIdentifierLength(QSqlDriver::IdentifierType type) const
}
QT_END_NAMESPACE
#include "moc_qsqldriver.cpp"

View File

@ -100,3 +100,5 @@ QSqlDriverPlugin::~QSqlDriverPlugin()
}
QT_END_NAMESPACE
#include "moc_qsqldriverplugin.cpp"

View File

@ -721,3 +721,5 @@ QModelIndex QSqlQueryModel::indexInQuery(const QModelIndex &item) const
}
QT_END_NAMESPACE
#include "moc_qsqlquerymodel.cpp"

View File

@ -792,3 +792,5 @@ bool QSqlRelationalTableModel::removeColumns(int column, int count, const QModel
}
QT_END_NAMESPACE
#include "moc_qsqlrelationaltablemodel.cpp"

View File

@ -1464,3 +1464,5 @@ QSqlRecord QSqlTableModel::primaryValues(int row) const
}
QT_END_NAMESPACE
#include "moc_qsqltablemodel.cpp"