Commit 8500d9ce authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlProject: Allow files to be deleted / renamed

This might lead to files that 'disappear' from the pane, e.g. when
the suffix is changed to something unsupported.

Reviewed-by: Daniel Teske
Task-number: QTCREATORBUG-2436
parent 1c7da3d8
......@@ -177,6 +177,8 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> QmlProjectNode::supportedActi
QList<ProjectAction> actions;
return actions;
......@@ -213,14 +215,13 @@ bool QmlProjectNode::removeFiles(const ProjectExplorer::FileType /*fileType*/,
bool QmlProjectNode::deleteFiles(const ProjectExplorer::FileType /*fileType*/,
const QStringList & /*filePaths*/)
return false;
return true;
bool QmlProjectNode::renameFile(const ProjectExplorer::FileType /*fileType*/,
const QString & /*filePath*/, const QString & /*newFilePath*/)
return false;
return true;
} // namespace Internal
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment