+ fixes #0001689: Show name of the drawing page in the tab of the drawing

This commit is contained in:
wmayer
2014-08-16 15:08:55 +02:00
parent 8808b82371
commit 6556bc776a
4 changed files with 16 additions and 3 deletions

View File

@@ -347,6 +347,15 @@ bool DrawingView::onHasMsg(const char* pMsg) const
return false;
}
void DrawingView::onRelabel(Gui::Document *pDoc)
{
const char* name = pDoc->getDocument()->Label.getValue();
QString title = QString::fromAscii("%1 : %2[*]")
.arg(QString::fromUtf8(name))
.arg(tr("Drawing"));
this->setWindowTitle(title);
}
void DrawingView::printPdf()
{
Gui::FileOptionsDialog dlg(this, 0);