diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.h b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.h
index 0d4b1250303df82c9455a7809355e2aa6b682d39..a4fe869ef013daf78f0f6099cdaebbdae5e088c3 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectnodes.h
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectnodes.h
@@ -37,6 +37,8 @@ namespace Internal {
 
 class CMakeProjectNode : public ProjectExplorer::ProjectNode
 {
+    Q_OBJECT
+    friend class CMakeProject;
 public:
     CMakeProjectNode(const QString &fileName);
     virtual bool hasTargets() const;
@@ -52,10 +54,6 @@ public:
     virtual bool renameFile(const ProjectExplorer::FileType fileType,
                              const QString &filePath,
                              const QString &newFilePath);
-
-    // TODO is protected in base class, and that's correct
-    using ProjectNode::addFileNodes;
-    using ProjectNode::addFolderNodes;
 };
 
 } // namespace Internal