]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
resize event's signal is generated for viewport
authorasl <asl@opencascade.com>
Thu, 7 Sep 2017 04:55:31 +0000 (07:55 +0300)
committerasl <asl@opencascade.com>
Tue, 19 Sep 2017 10:30:41 +0000 (13:30 +0300)
src/OCCViewer/OCCViewer_ViewPort3d.cxx
src/OCCViewer/OCCViewer_ViewPort3d.h

index e42313e63ca0c8447004da69e05d5544cc7323c4..2fabb182f916260db90c80eabb27176c536177b4 100755 (executable)
@@ -628,6 +628,7 @@ void OCCViewer_ViewPort3d::resizeEvent( QResizeEvent* e )
     QApplication::syncX();
 #endif
   QTimer::singleShot( 0, this, SLOT( repaintViewAfterMove() ) );
+  emit vpResizeEvent( e );
 }
 
 /*!
index 99428489804e23f294917cd1d090782ed98f5f5f..01b0fc17a018424758c70f8feb5463660e6b3322 100755 (executable)
@@ -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* );