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~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecc2df9a4b11cbd89113c8241256d7a8b09be967;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 e42313e63..2fabb182f 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -628,6 +628,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* );