From: stv Date: Thu, 11 Jan 2007 13:53:52 +0000 (+0000) Subject: no message X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5da320b026b35e086792dcb190ca927941faa459;p=modules%2Fgui.git no message --- diff --git a/src/QDS/QDS_Datum.cxx b/src/QDS/QDS_Datum.cxx index f6054509b..4ed5b9740 100644 --- a/src/QDS/QDS_Datum.cxx +++ b/src/QDS/QDS_Datum.cxx @@ -30,8 +30,9 @@ public: QWidget* widget() const; void setWidget( QWidget* ); - virtual void setGeometry( int x, int y, int w, int h ); + virtual void resize( int, int ); virtual void setSizePolicy( QSizePolicy ); + virtual void setGeometry( int x, int y, int w, int h ); virtual bool eventFilter( QObject*, QEvent* ); @@ -103,6 +104,14 @@ void QDS_Datum::Wrapper::setSizePolicy( QSizePolicy sp ) widget()->setSizePolicy( sp ); } +void QDS_Datum::Wrapper::resize( int w, int h ) +{ + QWidget::resize( w, h ); + + if ( widget() && widget()->size() != size() ) + widget()->resize( width(), height() ); +} + void QDS_Datum::Wrapper::setGeometry( int x, int y, int w, int h ) { QWidget::setGeometry( x, y, w, h );