diff options
author | hjk <hjk@qt.io> | 2017-03-17 12:26:00 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-03-21 12:48:41 +0000 |
commit | ebae6426f8246f21ac6354147d67efcde782c624 (patch) | |
tree | fb9e9488dc3e8896bc9856edfe152427d20c1ee0 /src/plugins/projectexplorer/projectnodes.h | |
parent | 312784a930078992c290b330a7e41ea219a6e3b1 (diff) |
ProjectManager: Remove SessionNode
Instead, get root project nodes directly from the project.
Change-Id: I5cf95a7dce1fa29c1adc26013ad03cc017f38a6d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.h')
-rw-r--r-- | src/plugins/projectexplorer/projectnodes.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h index fb17b4806e..757529da8b 100644 --- a/src/plugins/projectexplorer/projectnodes.h +++ b/src/plugins/projectexplorer/projectnodes.h @@ -40,14 +40,12 @@ namespace Utils { class MimeType; } namespace ProjectExplorer { class RunConfiguration; -class SessionManager; enum class NodeType : quint16 { File = 1, Folder, VirtualFolder, - Project, - Session + Project }; // File types common for qt projects @@ -275,8 +273,6 @@ private: class PROJECTEXPLORER_EXPORT ProjectNode : public FolderNode { public: - QString vcsTopic() const; - virtual bool canAddSubProject(const QString &proFilePath) const; virtual bool addSubProject(const QString &proFile); virtual bool removeSubProject(const QString &proFilePath); @@ -298,24 +294,7 @@ public: const ProjectNode *asProjectNode() const final { return this; } protected: - // this is just the in-memory representation, a subclass - // will add the persistent stuff explicit ProjectNode(const Utils::FileName &projectFilePath); - - friend class SessionManager; -}; - -// Documentation inside. -class PROJECTEXPLORER_EXPORT SessionNode : public FolderNode -{ -public: - SessionNode(); - -private: - QList<ProjectAction> supportedActions(Node *node) const final; - QString addFileFilter() const final; - - bool showInSimpleTree() const final; }; } // namespace ProjectExplorer |