forked from qt-creator/qt-creator
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:
@@ -377,7 +377,7 @@ void EditorToolBar::updateEditorStatus(IEditor *editor)
|
||||
|
||||
d->m_editorList->setCurrentIndex(d->m_editorsListModel->rowOfEditor(editor));
|
||||
|
||||
if (editor->document()->fileName().isEmpty()) {
|
||||
if (editor->document()->filePath().isEmpty()) {
|
||||
d->m_lockButton->setIcon(QIcon());
|
||||
d->m_lockButton->setEnabled(false);
|
||||
d->m_lockButton->setToolTip(QString());
|
||||
@@ -393,9 +393,9 @@ void EditorToolBar::updateEditorStatus(IEditor *editor)
|
||||
IEditor *current = EditorManager::currentEditor();
|
||||
if (editor == current)
|
||||
d->m_editorList->setToolTip(
|
||||
current->document()->fileName().isEmpty()
|
||||
current->document()->filePath().isEmpty()
|
||||
? current->displayName()
|
||||
: QDir::toNativeSeparators(editor->document()->fileName())
|
||||
: QDir::toNativeSeparators(editor->document()->filePath())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user