summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-02-28 16:45:00 +0100
committerhjk <hjk@qt.io>2019-03-01 08:42:14 +0000
commit89c9eed127977f2ddb5409ba7aefeefe51f64fa7 (patch)
tree154f563cd5736e8a107fca399b3ac0a26edf7d6a /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentad4e2562fa732892b717f76779ca56cc52543f1b (diff)
downloadqt-creator-89c9eed127977f2ddb5409ba7aefeefe51f64fa7.tar.gz
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>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index 57db21346c..6abb9146ca 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -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()) {