summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@theqtcompany.com>2015-09-10 17:47:57 +0200
committerDaniel Teske <daniel.teske@theqtcompany.com>2015-09-15 10:46:28 +0000
commitbcdadbec729a2591af4afca9b80378f4044218ac (patch)
treee1e2f427dd88cd022493b11b7508082c03616c62 /src/plugins/pythoneditor
parentfa94ec2c3b65a60158009b1d80405af2a9a68521 (diff)
downloadqt-creator-bcdadbec729a2591af4afca9b80378f4044218ac.tar.gz
ProjectNode: Provide default implementations of a few functions
Since a lot of derived classes can make use of those. Change-Id: I051542e8d318476348d753de4d4c0a30b3a9ed62 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/pythoneditor')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index 93849e8a60..b4daa03614 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -340,16 +340,7 @@ public:
QList<ProjectAction> supportedActions(Node *node) const override;
- bool canAddSubProject(const QString &proFilePath) const override;
-
- bool addSubProjects(const QStringList &proFilePaths) override;
- bool removeSubProjects(const QStringList &proFilePaths) override;
-
- bool addFiles(const QStringList &filePaths, QStringList *notAdded = 0) override;
- bool removeFiles(const QStringList &filePaths, QStringList *notRemoved = 0) override;
- bool deleteFiles(const QStringList &filePaths) override;
bool renameFile(const QString &filePath, const QString &newFilePath) override;
-
void refresh(QSet<QString> oldFileList = QSet<QString>());
private:
@@ -1081,44 +1072,6 @@ QList<ProjectAction> PythonProjectNode::supportedActions(Node *node) const
return {};
}
-bool PythonProjectNode::canAddSubProject(const QString &proFilePath) const
-{
- Q_UNUSED(proFilePath)
- return false;
-}
-
-bool PythonProjectNode::addSubProjects(const QStringList &proFilePaths)
-{
- Q_UNUSED(proFilePaths)
- return false;
-}
-
-bool PythonProjectNode::removeSubProjects(const QStringList &proFilePaths)
-{
- Q_UNUSED(proFilePaths)
- return false;
-}
-
-bool PythonProjectNode::addFiles(const QStringList &filePaths, QStringList *notAdded)
-{
- Q_UNUSED(notAdded)
-
- return m_project->addFiles(filePaths);
-}
-
-bool PythonProjectNode::removeFiles(const QStringList &filePaths, QStringList *notRemoved)
-{
- Q_UNUSED(notRemoved)
-
- return m_project->removeFiles(filePaths);
-}
-
-bool PythonProjectNode::deleteFiles(const QStringList &filePaths)
-{
- Q_UNUSED(filePaths)
- return false;
-}
-
bool PythonProjectNode::renameFile(const QString &filePath, const QString &newFilePath)
{
return m_project->renameFile(filePath, newFilePath);