Rename IDocument::fileName --> filePath

That is what it actually is, wrt how Qt API calls it.

Change-Id: Ied02055debf6aad75556b0d9d22e8ba2f72be555
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2013-07-04 13:30:26 +02:00
parent cee1602253
commit dd43d9908f
118 changed files with 326 additions and 326 deletions

View File

@@ -153,7 +153,7 @@ QString QmlProjectRunConfiguration::viewerArguments() const
QString QmlProjectRunConfiguration::workingDirectory() const
{
QFileInfo projectFile(target()->project()->document()->fileName());
QFileInfo projectFile(target()->project()->document()->filePath());
return canonicalCapsPath(projectFile.absolutePath());
}
@@ -273,7 +273,7 @@ bool QmlProjectRunConfiguration::fromMap(const QVariantMap &map)
void QmlProjectRunConfiguration::changeCurrentFile(Core::IEditor *editor)
{
if (editor)
m_currentFileFilename = editor->document()->fileName();
m_currentFileFilename = editor->document()->filePath();
updateEnabled();
}
@@ -284,7 +284,7 @@ void QmlProjectRunConfiguration::updateEnabled()
Core::IEditor *editor = Core::EditorManager::currentEditor();
Core::MimeDatabase *db = ICore::mimeDatabase();
if (editor) {
m_currentFileFilename = editor->document()->fileName();
m_currentFileFilename = editor->document()->filePath();
if (db->findByFile(mainScript()).type() == QLatin1String("application/x-qml"))
qmlFileFound = true;
}