Salome HOME
Fix for bug IPAL10143 : Black rectangle in SUPERVISIUON viewer.
authormkr <mkr@opencascade.com>
Wed, 5 Oct 2005 14:42:16 +0000 (14:42 +0000)
committermkr <mkr@opencascade.com>
Wed, 5 Oct 2005 14:42:16 +0000 (14:42 +0000)
src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx
src/SUPERVGraph/SUPERVGraph_ViewFrame.h

index b98788db7be3333b7143fe78437ff080237390c6..ddab29d9507401760e91e64a41858169ebc337bc 100755 (executable)
@@ -279,3 +279,8 @@ void SUPERVGraph_ViewFrame::redo( const _PTR(Study)& aStudy,
   MESSAGE ( "SUPERVGraph_ViewFrame::redo" )
 }
 
+void SUPERVGraph_ViewFrame::resizeEvent( QResizeEvent* theEvent )
+{
+  QMainWindow::resizeEvent( theEvent );
+  if ( myView ) myView->resizeView( theEvent );
+}
index e6b07bb3e0da9b82608c7bf950d12d8e5d98baf7..e4d76feaf5dbe8641f8df2d1718b8a9435953731 100755 (executable)
@@ -52,8 +52,11 @@ class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_View: public QWidget, public SUIT_Popup
   virtual QString popupClientType() const { return Type(); }
   virtual void    contextMenuPopup( QPopupMenu* );
   
+  virtual void resizeView( QResizeEvent* theEvent ) {};
+  
  protected:
   void init(QWidget* theParent);
+  
 };
 
 class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_ViewFrame : public SUIT_ViewWindow {
@@ -111,6 +114,9 @@ class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_ViewFrame : public SUIT_ViewWindow {
   void           onViewBottom();
   void           onViewTop();
   void           onViewTrihedron(); 
+
+ protected:
+  void resizeEvent( QResizeEvent* theEvent );
   
  private:
   SUPERVGraph_View* myView;