diff --git a/src/akonadi/akonadistorage.cpp b/src/akonadi/akonadistorage.cpp --- a/src/akonadi/akonadistorage.cpp +++ b/src/akonadi/akonadistorage.cpp @@ -56,6 +56,7 @@ class CollectionJob : public CollectionFetchJob, public CollectionFetchJobInterface { + Q_OBJECT public: CollectionJob(const Collection &collection, Type type = FirstLevel, QObject *parent = Q_NULLPTR) : CollectionFetchJob(collection, type, parent), @@ -131,6 +132,7 @@ class CollectionSearchJob : public CollectionFetchJob, public CollectionSearchJobInterface { + Q_OBJECT public: CollectionSearchJob(const QString &collectionName, QObject *parent = Q_NULLPTR) : CollectionFetchJob(Akonadi::Collection::root(), @@ -192,6 +194,7 @@ class ItemJob : public ItemFetchJob, public ItemFetchJobInterface { + Q_OBJECT public: using ItemFetchJob::ItemFetchJob; @@ -205,6 +208,7 @@ class TagJob : public TagFetchJob, public TagFetchJobInterface { + Q_OBJECT public: using TagFetchJob::TagFetchJob; @@ -399,3 +403,5 @@ scope.setAncestorRetrieval(ItemFetchScope::All); job->setFetchScope(scope); } + +#include "akonadistorage.moc" diff --git a/src/widgets/newprojectdialog.cpp b/src/widgets/newprojectdialog.cpp --- a/src/widgets/newprojectdialog.cpp +++ b/src/widgets/newprojectdialog.cpp @@ -36,6 +36,7 @@ class TaskSourceProxy : public QSortFilterProxyModel { + Q_OBJECT public: explicit TaskSourceProxy(QObject *parent = Q_NULLPTR) : QSortFilterProxyModel(parent) @@ -116,3 +117,5 @@ auto buttonOk = ui->buttonBox->button(QDialogButtonBox::Ok); buttonOk->setEnabled(!text.isEmpty()); } + +#include "newprojectdialog.moc" diff --git a/src/widgets/pageview.cpp b/src/widgets/pageview.cpp --- a/src/widgets/pageview.cpp +++ b/src/widgets/pageview.cpp @@ -47,6 +47,7 @@ namespace Widgets { class PageTreeView : public QTreeView { + Q_OBJECT public: using QTreeView::QTreeView; @@ -64,6 +65,7 @@ class PassivePopup : public QFrame { + Q_OBJECT public: explicit PassivePopup(QWidget *parent = Q_NULLPTR) : QFrame(parent), @@ -359,3 +361,5 @@ return false; } + +#include "pageview.moc" diff --git a/tests/units/widgets/applicationcomponentstest.cpp b/tests/units/widgets/applicationcomponentstest.cpp --- a/tests/units/widgets/applicationcomponentstest.cpp +++ b/tests/units/widgets/applicationcomponentstest.cpp @@ -50,6 +50,8 @@ class CustomModelStub : public QStandardItemModel { + Q_OBJECT + QMimeData *mimeData(const QModelIndexList &indexes) const { QStringList dataString;