diff --git a/src/plugins/cpptools/completionsettingspage.h b/src/plugins/cpptools/completionsettingspage.h
index 48c16a729d1fd8c5e5139f752bd4b0c96627519c..a192fb1d12a6a2bb62a71a16aae385f1e53e74a9 100644
--- a/src/plugins/cpptools/completionsettingspage.h
+++ b/src/plugins/cpptools/completionsettingspage.h
@@ -43,6 +43,8 @@ class CppCodeCompletion;
 
 class CompletionSettingsPage : public Core::IOptionsPage
 {
+    Q_OBJECT
+
 public:
     CompletionSettingsPage(CppCodeCompletion *completion);
     ~CompletionSettingsPage();
diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp
index 816d65c794a0be428281ce67d6d0a364e804a6b9..c9b622c0754bb79c6aee9035718dbcda3021c79a 100644
--- a/src/plugins/debugger/debuggeroutputwindow.cpp
+++ b/src/plugins/debugger/debuggeroutputwindow.cpp
@@ -62,6 +62,8 @@ using namespace Debugger::Internal;
 
 class DebuggerPane : public QPlainTextEdit
 {
+    Q_OBJECT
+
 public:
     DebuggerPane(QWidget *parent)
         : QPlainTextEdit(parent)
diff --git a/src/plugins/debugger/disassemblerhandler.cpp b/src/plugins/debugger/disassemblerhandler.cpp
index ee03f6cfd55bf1eade7bfe6707b35e47f1822638..7b2285bf4112bb083019f0a8229bdac97a7086f9 100644
--- a/src/plugins/debugger/disassemblerhandler.cpp
+++ b/src/plugins/debugger/disassemblerhandler.cpp
@@ -57,6 +57,8 @@ void DisassemblerLine::clear()
 /*! A model to represent the stack in a QTreeView. */
 class Debugger::Internal::DisassemblerModel : public QAbstractTableModel
 {
+    Q_OBJECT
+
 public:
     DisassemblerModel(QObject *parent);
 
@@ -188,3 +190,5 @@ void DisassemblerHandler::setCurrentLine(int line)
 {
     m_model->setCurrentLine(line);
 }
+
+#include "disassemblerhandler.moc"
diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp
index 0cb3282947e5e9da421176cdc56cc3550a404b2a..19e7058c1e33f7532720e56a573323c56c584e14 100644
--- a/src/plugins/debugger/moduleshandler.cpp
+++ b/src/plugins/debugger/moduleshandler.cpp
@@ -53,6 +53,8 @@ using namespace Debugger::Internal;
 
 class Debugger::Internal::ModulesModel : public QAbstractItemModel
 {
+    Q_OBJECT
+
 public:
     ModulesModel(ModulesHandler *parent)
       : QAbstractItemModel(parent)
@@ -167,3 +169,5 @@ QList<Module> ModulesHandler::modules() const
 {
     return m_model->m_modules;
 }
+
+#include "moduleshandler.moc"
diff --git a/src/plugins/debugger/sourcefileswindow.cpp b/src/plugins/debugger/sourcefileswindow.cpp
index 7b927cd4de829c887ddd6f8887c3391bb9f61c72..6f36a8f1f322be277744b6455fe865c2423ad685 100644
--- a/src/plugins/debugger/sourcefileswindow.cpp
+++ b/src/plugins/debugger/sourcefileswindow.cpp
@@ -53,6 +53,8 @@ using Debugger::Internal::SourceFilesModel;
 
 class Debugger::Internal::SourceFilesModel : public QAbstractItemModel
 {
+    Q_OBJECT
+
 public:
     SourceFilesModel(QObject *parent = 0) : QAbstractItemModel(parent) {}
 
@@ -229,3 +231,4 @@ void SourceFilesWindow::removeAll()
     header()->setResizeMode(0, QHeaderView::ResizeToContents);
 }
     
+#include "sourcefileswindow.moc"
diff --git a/src/plugins/debugger/stackhandler.h b/src/plugins/debugger/stackhandler.h
index ba88b15b44771feff8b5389d4cfe202650b574b1..12f771464a86390ba360cca6e11d4e2f753b1427 100644
--- a/src/plugins/debugger/stackhandler.h
+++ b/src/plugins/debugger/stackhandler.h
@@ -61,6 +61,8 @@ struct StackFrame
 /*! A model to represent the stack in a QTreeView. */
 class StackHandler : public QAbstractTableModel
 {
+    Q_OBJECT
+
 public:
     StackHandler(QObject *parent = 0);
 
@@ -106,6 +108,8 @@ struct ThreadData
 /*! A model to represent the running threads in a QTreeView or ComboBox */
 class ThreadsHandler : public QAbstractTableModel
 {
+    Q_OBJECT
+
 public:
     ThreadsHandler(QObject *parent = 0);
 
diff --git a/src/plugins/projectexplorer/currentprojectfind.h b/src/plugins/projectexplorer/currentprojectfind.h
index e24b6490a322c43fd381771c027d92cc5ea54087..52fcde5c09f2c58e5db87fce8abcf9b0f3eeb253 100644
--- a/src/plugins/projectexplorer/currentprojectfind.h
+++ b/src/plugins/projectexplorer/currentprojectfind.h
@@ -45,6 +45,8 @@ namespace Internal {
 
 class CurrentProjectFind : public TextEditor::BaseFileFind
 {
+    Q_OBJECT
+
 public:
     CurrentProjectFind(ProjectExplorerPlugin *plugin, Find::SearchResultWindow *resultWindow);
 
diff --git a/src/plugins/projectexplorer/foldernavigationwidget.h b/src/plugins/projectexplorer/foldernavigationwidget.h
index e3955b10ff75a85d8b2533558aba38d9a763bdab..f1b0baf0b84571c534d8ca717ec9f75a1bb1d11c 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.h
+++ b/src/plugins/projectexplorer/foldernavigationwidget.h
@@ -77,6 +77,7 @@ private:
 
 class FolderNavigationWidgetFactory : public Core::INavigationWidgetFactory
 {
+    Q_OBJECT
 public:
     FolderNavigationWidgetFactory();
     virtual ~FolderNavigationWidgetFactory();
diff --git a/src/plugins/projectexplorer/projecttreewidget.h b/src/plugins/projectexplorer/projecttreewidget.h
index 4b536f1cff1506e7c0c827f4c686e9d95362f21a..0313a18f197a938b85d61f8aad502ae3174f1cb2 100644
--- a/src/plugins/projectexplorer/projecttreewidget.h
+++ b/src/plugins/projectexplorer/projecttreewidget.h
@@ -95,6 +95,7 @@ private:
 
 class ProjectTreeWidgetFactory : public Core::INavigationWidgetFactory
 {
+    Q_OBJECT
 public:
     ProjectTreeWidgetFactory();
     virtual ~ProjectTreeWidgetFactory();
diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp
index c03c15a8d830d69655a2963b7c3de99e316ddc75..f36a028f9a21450749924ea6547a11a301407fba 100644
--- a/src/plugins/projectexplorer/sessiondialog.cpp
+++ b/src/plugins/projectexplorer/sessiondialog.cpp
@@ -76,6 +76,7 @@ void SessionValidator::fixup(QString &input) const
 
 class NewSessionInputDialog : public QDialog
 {
+    Q_OBJECT
 public:
     NewSessionInputDialog(QStringList sessions);
     QString value();
@@ -188,3 +189,5 @@ void SessionDialog::remove()
 
 } // namespace Internal
 } // namespace ProjectExplorer
+
+#include "sessiondialog.moc"
diff --git a/src/plugins/quickopen/quickopenfiltersfilter.h b/src/plugins/quickopen/quickopenfiltersfilter.h
index d9f7e31f8b4b825ca9677075721a148adcefc45e..b4d48cd640936a2d1a5e843f7cf8c128eb261e3f 100644
--- a/src/plugins/quickopen/quickopenfiltersfilter.h
+++ b/src/plugins/quickopen/quickopenfiltersfilter.h
@@ -46,6 +46,8 @@ class QuickOpenToolWindow;
  */
 class QuickOpenFiltersFilter : public IQuickOpenFilter
 {
+    Q_OBJECT
+
 public:
     QuickOpenFiltersFilter(QuickOpenPlugin *plugin,
                            QuickOpenToolWindow *toolWindow);