Window title didn't show nice name for e.g. diff views.

Use the editor's displayName for the window title.
Also there were missing change signal emissions in setDisplayName
implementations.
Moves the actual handling of the window title from Session to
EditorManager (so it now is also done for the hypothetical case of no
project explorer plugin).

Task-number: QTCREATORBUG-3207
This commit is contained in:
con
2010-11-30 12:55:41 +01:00
parent 14a71bc770
commit af99e09b05
9 changed files with 55 additions and 35 deletions

View File

@@ -2050,6 +2050,7 @@ QString BaseTextEditor::displayName() const
void BaseTextEditor::setDisplayName(const QString &title)
{
d->m_displayName = title;
emit changed();
}
BaseTextDocument *BaseTextEditor::baseTextDocument() const