forked from qt-creator/qt-creator
ProjectExplorer: De-virtualize FolderNode::addFileFilter
... which interestingly enough is only used with Add Existing Directory, not with Add Existing Files. Change-Id: If76ba5f192dc49f3cb56e3d0c9ab249e47aa1c28 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -116,7 +116,6 @@ public:
|
||||
PythonProjectNode(PythonProject *project);
|
||||
|
||||
bool showInSimpleTree() const override;
|
||||
QString addFileFilter() const override;
|
||||
bool supportsAction(ProjectAction action, const Node *node) const override;
|
||||
bool addFiles(const QStringList &filePaths, QStringList *) override;
|
||||
bool removeFiles(const QStringList &filePaths, QStringList *) override;
|
||||
@@ -585,6 +584,7 @@ PythonProjectNode::PythonProjectNode(PythonProject *project)
|
||||
, m_project(project)
|
||||
{
|
||||
setDisplayName(project->projectFilePath().toFileInfo().completeBaseName());
|
||||
setAddFileFilter("*.py");
|
||||
}
|
||||
|
||||
QHash<QString, QStringList> sortFilesIntoPaths(const QString &base, const QSet<QString> &files)
|
||||
@@ -616,11 +616,6 @@ bool PythonProjectNode::showInSimpleTree() const
|
||||
return true;
|
||||
}
|
||||
|
||||
QString PythonProjectNode::addFileFilter() const
|
||||
{
|
||||
return QLatin1String("*.py");
|
||||
}
|
||||
|
||||
bool PythonProjectNode::supportsAction(ProjectAction action, const Node *node) const
|
||||
{
|
||||
if (node->isFileNodeType()) {
|
||||
|
||||
Reference in New Issue
Block a user