+ fixes #0001689: Show name of the drawing page in the tab of the drawing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user