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

@@ -572,7 +572,7 @@ public:
return e->open(fileName);
}
inline QString displayName() const { return e->displayName(); }
inline void setDisplayName(const QString &title) { e->setDisplayName(title); }
inline void setDisplayName(const QString &title) { e->setDisplayName(title); emit changed(); }
inline QByteArray saveState() const { return e->saveState(); }
inline bool restoreState(const QByteArray &state) { return e->restoreState(state); }