Set window title for viewerwidget

This commit is contained in:
Jan Möbius
2023-09-01 12:24:31 +02:00
parent 446c442a50
commit aaf3fb292c

View File

@@ -188,6 +188,9 @@ MeshViewerWidgetT<M>::open_mesh(const char* _filename, IO::Options _opt)
updateGL();
#endif
if ( this->parentWidget() != nullptr )
this->parentWidget()->setWindowTitle(QFileInfo(_filename).fileName());
else
setWindowTitle(QFileInfo(_filename).fileName());
// loading done