Core: Set tab title for MDIViewPyWrap
This commit is contained in:
@@ -173,6 +173,10 @@ MDIViewPyWrap::MDIViewPyWrap(const Py::Object& py, Gui::Document* pcDocument,QWi
|
|||||||
QWidget* widget = ptr->widget();
|
QWidget* widget = ptr->widget();
|
||||||
if (widget) {
|
if (widget) {
|
||||||
setCentralWidget(widget);
|
setCentralWidget(widget);
|
||||||
|
QString title = widget->windowTitle();
|
||||||
|
if (!title.isEmpty()) {
|
||||||
|
setWindowTitle(title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Py::Exception&) {
|
catch (Py::Exception&) {
|
||||||
|
|||||||
Reference in New Issue
Block a user