diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-03-17 11:52:45 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-03-18 14:23:11 +0100 |
commit | 50fc169c9420bd97857e37bc01d5fe72dfff1fab (patch) | |
tree | 2b8d751a90b8bd211cbc72b7f49bd44c3b4d1ed9 /src/plugins/resourceeditor | |
parent | e27603495f9bb634d30b0f379c459c27e2fa2b7a (diff) |
ProjectTree: Change hasBuildTargets to FolderNode::showInSimpleTree
So that the resource node can override it.
Task-number: QTCREATORBUG-11678
Change-Id: Id30d1b99ee23cc18fc29fc99cf0ad7ca919ed527
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.cpp | 5 | ||||
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index 842baf2c098..3aeb932e603 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -257,6 +257,11 @@ ProjectExplorer::FolderNode::AddNewInformation ResourceTopLevelNode::addNewInfor return AddNewInformation(name, p); } +bool ResourceTopLevelNode::showInSimpleTree() const +{ + return true; +} + ResourceFolderNode::ResourceFolderNode(const QString &prefix, const QString &lang, ResourceTopLevelNode *parent) : ProjectExplorer::FolderNode(parent->path() + QLatin1Char('/') + prefix), // TOOD Why add existing directory doesn't work diff --git a/src/plugins/resourceeditor/resourcenode.h b/src/plugins/resourceeditor/resourcenode.h index 9aa4166c938..01dfaf1c2ea 100644 --- a/src/plugins/resourceeditor/resourcenode.h +++ b/src/plugins/resourceeditor/resourcenode.h @@ -60,6 +60,7 @@ public: bool removePrefix(const QString &prefix, const QString &lang); AddNewInformation addNewInformation(const QStringList &files, Node *context) const; + bool showInSimpleTree() const; private: Internal::ResourceFileWatcher *m_document; |