diff --git a/src/plugins/mercurial/mercurialeditor.h b/src/plugins/mercurial/mercurialeditor.h
index c74e6e48c865c710727998f2c179ef6d66da25e0..14b935d3c7769769710f078c20c15356d8da1a18 100644
--- a/src/plugins/mercurial/mercurialeditor.h
+++ b/src/plugins/mercurial/mercurialeditor.h
@@ -39,6 +39,7 @@ namespace Internal {
 
 class MercurialEditor : public VCSBase::VCSBaseEditor
 {
+    Q_OBJECT
 public:
     explicit MercurialEditor(const VCSBase::VCSBaseEditorParameters *type, QWidget *parent);