C++: handle case-insensitive file names for project files.

... by keying on Utils::FileName.

Task-number: QTCREATORBUG-12390
Change-Id: Ib99eefcf3440d4383f624a614a3093f427efffbd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Erik Verbruggen
2014-11-27 12:40:34 +01:00
committed by Erik Verbruggen
parent 5a40c071a4
commit 7d377850d0
4 changed files with 14 additions and 10 deletions

View File

@@ -765,7 +765,7 @@ void CppEditorWidget::abortDeclDefLink()
void CppEditorWidget::showPreProcessorWidget()
{
const QString &fileName = textDocument()->filePath();
const Utils::FileName fileName = Utils::FileName::fromString(textDocument()->filePath());
// Check if this editor belongs to a project
QList<ProjectPart::Ptr> projectParts = d->m_modelManager->projectPart(fileName);