diff options
Diffstat (limited to 'DockWidgets/DockWidgetMaterialStream.py')
-rw-r--r-- | DockWidgets/DockWidgetMaterialStream.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/DockWidgets/DockWidgetMaterialStream.py b/DockWidgets/DockWidgetMaterialStream.py index 54d57b9..09cddf4 100644 --- a/DockWidgets/DockWidgetMaterialStream.py +++ b/DockWidgets/DockWidgetMaterialStream.py @@ -345,4 +345,8 @@ class DockWidgetMaterialStream(QDockWidget,ui_dialog): except Exception as e: - print(e)
\ No newline at end of file + print(e) + def closeEvent(self,event): + scrollHVal = self.parent().container.graphics.graphicsView.horizontalScrollBarVal + currentVal = self.parent().container.graphics.graphicsView.horizontalScrollBar().value() + self.parent().container.graphics.graphicsView.horizontalScrollBar().setValue((scrollHVal+currentVal)/2)
\ No newline at end of file |