From 81bacc615b4495119032a7e0e92bfceda4379b0a Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 21 Feb 2007 09:34:51 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxDockWidget.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Qtx/QtxDockWidget.cxx b/src/Qtx/QtxDockWidget.cxx index 26e3e8bf3..a82a2a474 100644 --- a/src/Qtx/QtxDockWidget.cxx +++ b/src/Qtx/QtxDockWidget.cxx @@ -21,6 +21,7 @@ #include "QtxDockWidget.h" +#include #include #include #include @@ -161,7 +162,7 @@ void QtxDockWidget::Watcher::hideContainer() /*! Event filter of custom events */ -void QtxDockWidget::Watcher::customEvent( QEvent* e ) +void QtxDockWidget::Watcher::customEvent( QEvent* ) { updateIcon(); updateCaption(); @@ -180,7 +181,7 @@ void QtxDockWidget::Watcher::installFilters() if ( !l ) return; - for ( uint i = 0; i < l->count(); i++ ) + for ( int i = 0; i < (int)l->count(); i++ ) { if ( l->itemAt( i ) && l->itemAt( i )->widget() ) l->itemAt( i )->widget()->installEventFilter( this ); @@ -200,7 +201,7 @@ void QtxDockWidget::Watcher::updateVisibility() return; bool vis = false; - for ( uint i = 0; i < l->count() && !vis; i++ ) + for ( int i = 0; i < (int)l->count() && !vis; i++ ) vis = l->itemAt( i ) && l->itemAt( i )->widget() && l->itemAt( i )->widget()->isVisibleTo( myCont ); if ( myEmpty == vis ) @@ -330,5 +331,9 @@ void QtxDockWidget::setVisible( bool on ) myWatcher->hided( this ); } + updateGeometry(); + if ( widget() ) + widget()->updateGeometry(); + QDockWidget::setVisible( on ); } -- 2.39.2