From: asl Date: Thu, 7 Sep 2017 04:55:31 +0000 (+0300) Subject: resize event's signal is generated for viewport X-Git-Tag: v2.1.1__salome84~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=154d6f83fa2fb55b58c36d2e76e5957367af0ee0;p=modules%2Fgui.git resize event's signal is generated for viewport --- diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 784d86c0d..db0e65bb0 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -632,6 +632,7 @@ void OCCViewer_ViewPort3d::resizeEvent( QResizeEvent* e ) QApplication::syncX(); #endif QTimer::singleShot( 0, this, SLOT( repaintViewAfterMove() ) ); + emit vpResizeEvent( e ); } /*! diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.h b/src/OCCViewer/OCCViewer_ViewPort3d.h index 994284898..01b0fc17a 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.h +++ b/src/OCCViewer/OCCViewer_ViewPort3d.h @@ -102,6 +102,7 @@ signals: void vpChangeBackground( const Qtx::BackgroundData& ); void vpClosed(OCCViewer_ViewPort3d*); void vpMapped(OCCViewer_ViewPort3d*); + void vpResizeEvent( QResizeEvent* ); public slots: virtual bool synchronize( OCCViewer_ViewPort* );