ProjectExplorer::New File Use addNewInformation also for context menu

So that the resourcenode can steal from it's parent

Change-Id: I97a21d94c0ddb0d217c48fd69dc808446763837b
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Daniel Teske
2014-03-07 16:23:04 +01:00
parent 5bb72be900
commit ca6efdcedc
8 changed files with 48 additions and 39 deletions

View File

@@ -341,10 +341,10 @@ bool FolderNode::renameFile(const QString &filePath, const QString &newFilePath)
return false;
}
FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files) const
FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files, Node *context) const
{
Q_UNUSED(files);
return AddNewInformation(QFileInfo(path()).fileName(), 100);
return AddNewInformation(QFileInfo(path()).fileName(), context == this ? 120 : 100);
}
/*!