forked from qt-creator/qt-creator
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:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user