summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
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()) {