display current active document in main window title
This commit is contained in:
committed by
Yorik van Havre
parent
87baa154ac
commit
bdebed7d17
@@ -448,4 +448,18 @@ void MDIView::setCurrentViewMode(ViewMode mode)
|
||||
}
|
||||
}
|
||||
|
||||
QString MDIView::buildWindowTitle()
|
||||
{
|
||||
QString windowTitle;
|
||||
if (Gui::Document* document = getGuiDocument()) {
|
||||
if (document->isModified()) {
|
||||
windowTitle = QString::fromUtf8("* ");
|
||||
}
|
||||
|
||||
windowTitle.append(QString::fromUtf8(getAppDocument()->getName()));
|
||||
}
|
||||
|
||||
return windowTitle;
|
||||
}
|
||||
|
||||
#include "moc_MDIView.cpp"
|
||||
|
||||
Reference in New Issue
Block a user