aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-03-01 17:46:45 +0100
committerhjk <hjk@qt.io>2019-03-04 15:50:34 +0000
commit92da9d1e6764c1f3f7e08bf69c35f02b9bb10406 (patch)
treeb41217d3a26848e6fc153ffcaa5571e414cecebf /src/plugins/resourceeditor
parentd410e878298b1317b2ec698fe1ef69897a0a42ee (diff)
ProjectExplorer: De-virtualize FolderNode::showWhenEmpty
Change-Id: Id3d019f449afcfe72b92d505c7822c3b10e2e8e7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r--src/plugins/resourceeditor/resourcenode.cpp7
-rw-r--r--src/plugins/resourceeditor/resourcenode.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp
index cc9888ca6a..ae9d8c7d61 100644
--- a/src/plugins/resourceeditor/resourcenode.cpp
+++ b/src/plugins/resourceeditor/resourcenode.cpp
@@ -489,11 +489,6 @@ bool ResourceTopLevelNode::showInSimpleTree() const
return true;
}
-bool ResourceTopLevelNode::showWhenEmpty() const
-{
- return true;
-}
-
ResourceFolderNode::ResourceFolderNode(const QString &prefix, const QString &lang, ResourceTopLevelNode *parent)
: FolderNode(FileName(parent->filePath()).appendPath(prefix)),
// TOOD Why add existing directory doesn't work
@@ -501,7 +496,7 @@ ResourceFolderNode::ResourceFolderNode(const QString &prefix, const QString &lan
m_prefix(prefix),
m_lang(lang)
{
-
+ setShowWhenEmpty(true);
}
ResourceFolderNode::~ResourceFolderNode() = default;
diff --git a/src/plugins/resourceeditor/resourcenode.h b/src/plugins/resourceeditor/resourcenode.h
index f732c6ae52..089f9170f7 100644
--- a/src/plugins/resourceeditor/resourcenode.h
+++ b/src/plugins/resourceeditor/resourcenode.h
@@ -50,7 +50,6 @@ public:
AddNewInformation addNewInformation(const QStringList &files, Node *context) const override;
bool showInSimpleTree() const override;
- bool showWhenEmpty() const override;
bool removeNonExistingFiles();
QString contents() const { return m_contents; }