From 5da320b026b35e086792dcb190ca927941faa459 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 11 Jan 2007 13:53:52 +0000 Subject: [PATCH] no message --- src/QDS/QDS_Datum.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ); -- 2.39.2