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

@@ -176,8 +176,8 @@ void ShortCutManager::updateActions(Core::IEditor* currentEditor)
QString fileName;
if (currentEditor) {
if (!currentEditor->document()->fileName().isEmpty()) {
QFileInfo fileInfo(currentEditor->document()->fileName());
if (!currentEditor->document()->filePath().isEmpty()) {
QFileInfo fileInfo(currentEditor->document()->filePath());
fileName = fileInfo.fileName();
} else {
fileName = currentEditor->displayName();
@@ -187,7 +187,7 @@ void ShortCutManager::updateActions(Core::IEditor* currentEditor)
m_saveAction.setEnabled(currentEditor != 0 && currentEditor->document()->isModified());
m_saveAsAction.setEnabled(currentEditor != 0 && currentEditor->document()->isSaveAsAllowed());
m_revertToSavedAction.setEnabled(currentEditor != 0
&& !currentEditor->document()->fileName().isEmpty()
&& !currentEditor->document()->filePath().isEmpty()
&& currentEditor->document()->isModified());
QString quotedName;