#include "QtxDockWidget.h"
+#include <QtGui/qevent.h>
#include <QtGui/qlayout.h>
#include <QtGui/qaction.h>
#include <QtGui/qapplication.h>
/*!
Event filter of custom events
*/
-void QtxDockWidget::Watcher::customEvent( QEvent* e )
+void QtxDockWidget::Watcher::customEvent( QEvent* )
{
updateIcon();
updateCaption();
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 );
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 )
myWatcher->hided( this );
}
+ updateGeometry();
+ if ( widget() )
+ widget()->updateGeometry();
+
QDockWidget::setVisible( on );
}