QtDBus: 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: Id5892f146f9792a0c5c8df24c7750a4089b07c6e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2022-01-25 21:20:56 +01:00
parent e48b4d2b7c
commit 7d4b480be3
6 changed files with 14 additions and 0 deletions

View File

@ -335,4 +335,7 @@ void QDBusAdaptorConnector::relay(QObject *senderObj, int lastSignalIdx, void **
QT_END_NAMESPACE
#include "moc_qdbusabstractadaptor_p.cpp"
#include "moc_qdbusabstractadaptor.cpp"
#endif // QT_NO_DBUS

View File

@ -1255,6 +1255,10 @@ QByteArray QDBusConnection::localMachineId()
QT_END_NAMESPACE
#include "moc_qdbusconnection_p.cpp"
#include "moc_qdbusconnection.cpp"
#include "moc_qdbusconnectionmanager_p.cpp"
#ifdef Q_OS_WIN
# include <qt_windows.h>

View File

@ -444,4 +444,6 @@ void QDBusConnectionInterface::disconnectNotify(const QMetaMethod &signal)
QT_END_NAMESPACE
#include "moc_qdbusconnectioninterface.cpp"
#endif // QT_NO_DBUS

View File

@ -356,6 +356,8 @@ QDebug operator<<(QDebug dbg, const QDBusError &msg)
QT_END_NAMESPACE
#include "moc_qdbuserror.cpp"
#endif // QT_NO_DBUS
/*

View File

@ -546,6 +546,8 @@ void QDBusPendingCallWatcher::waitForFinished()
}
QT_END_NAMESPACE
#include "moc_qdbuspendingcall_p.cpp"
#endif // QT_NO_DBUS
#include "moc_qdbuspendingcall.cpp"

View File

@ -60,6 +60,7 @@ QDBusVirtualObject::~QDBusVirtualObject()
QT_END_NAMESPACE
#include "moc_qdbusvirtualobject.cpp"
/*!
\class QDBusVirtualObject