From 427260f12b946802b23311a68dcbd744b007e610 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 5 Oct 2005 14:42:16 +0000 Subject: [PATCH] Fix for bug IPAL10143 : Black rectangle in SUPERVISIUON viewer. --- src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx | 5 +++++ src/SUPERVGraph/SUPERVGraph_ViewFrame.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx b/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx index b98788db7..ddab29d95 100755 --- a/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx +++ b/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx @@ -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 ); +} diff --git a/src/SUPERVGraph/SUPERVGraph_ViewFrame.h b/src/SUPERVGraph/SUPERVGraph_ViewFrame.h index e6b07bb3e..e4d76feaf 100755 --- a/src/SUPERVGraph/SUPERVGraph_ViewFrame.h +++ b/src/SUPERVGraph/SUPERVGraph_ViewFrame.h @@ -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; -- 2.39.2