]> 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>
Thu, 7 Sep 2017 04:55:31 +0000 (07:55 +0300)
src/OCCViewer/OCCViewer_ViewPort3d.cxx
src/OCCViewer/OCCViewer_ViewPort3d.h

index 784d86c0d1109440f3deeac9841221ed45a5dace..db0e65bb0f755a929cce4004be2201240f09e10b 100755 (executable)
@@ -632,6 +632,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* );