forked from qt-creator/qt-creator
ProjectExplorer: Flip default for ProjectNode::showInSimpleTree
Change-Id: Ibd4f91ad55b2be93d20dfc4f583de95274e981ca Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -330,11 +330,6 @@ QbsProductNode::QbsProductNode(const qbs::ProductData &prd) :
|
||||
setIcon(productIcon);
|
||||
}
|
||||
|
||||
bool QbsProductNode::showInSimpleTree() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QbsProductNode::supportsAction(ProjectAction action, const Node *node) const
|
||||
{
|
||||
if (action == AddNewFile || action == AddExistingFile)
|
||||
@@ -425,11 +420,6 @@ const qbs::Project QbsProjectNode::qbsProject() const
|
||||
return project()->qbsProject();
|
||||
}
|
||||
|
||||
bool QbsProjectNode::showInSimpleTree() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void QbsProjectNode::setProjectData(const qbs::ProjectData &data)
|
||||
{
|
||||
m_projectData = data;
|
||||
|
||||
@@ -44,6 +44,7 @@ class QbsGroupNode : public ProjectExplorer::ProjectNode
|
||||
public:
|
||||
QbsGroupNode(const qbs::GroupData &grp, const QString &productPath);
|
||||
|
||||
bool showInSimpleTree() const final { return false; }
|
||||
bool supportsAction(ProjectExplorer::ProjectAction action, const Node *node) const final;
|
||||
bool addFiles(const QStringList &filePaths, QStringList *notAdded = nullptr) override;
|
||||
bool removeFiles(const QStringList &filePaths, QStringList *notRemoved = nullptr) override;
|
||||
@@ -65,7 +66,6 @@ class QbsProductNode : public ProjectExplorer::ProjectNode
|
||||
public:
|
||||
explicit QbsProductNode(const qbs::ProductData &prd);
|
||||
|
||||
bool showInSimpleTree() const override;
|
||||
bool supportsAction(ProjectExplorer::ProjectAction action, const Node *node) const final;
|
||||
bool addFiles(const QStringList &filePaths, QStringList *notAdded = nullptr) override;
|
||||
bool removeFiles(const QStringList &filePaths, QStringList *notRemoved = nullptr) override;
|
||||
@@ -93,7 +93,6 @@ public:
|
||||
const qbs::Project qbsProject() const;
|
||||
const qbs::ProjectData qbsProjectData() const { return m_projectData; }
|
||||
|
||||
bool showInSimpleTree() const override;
|
||||
void setProjectData(const qbs::ProjectData &data); // FIXME: Needed?
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user