bool QtxDockAction::event( QEvent* e )
{
- if ( e->type() == AutoAdd )
+ if ( e->type() == (int)AutoAdd )
{
QCustomEvent* ce = (QCustomEvent*)e;
QDockWindow* dw = (QDockWindow*)ce->data();
if ( !area )
return;
+ qApp->processEvents();
+
for ( QPtrListIterator<QDockWindow> itr( dockList ); itr.current(); ++itr )
{
QDockWindow* dw = itr.current();
bool QtxListFrame::event( QEvent* e )
{
- if ( e->type() != ScrollEvent::Scroll )
- return QFrame::event( e );
+ if ( e->type() != (int)ScrollEvent::Scroll )
+ return QFrame::event( e );
- ScrollEvent* se = (ScrollEvent*)e;
- if ( se->isDown() )
- setSelected( myList->topItem() + myList->numItemsVisible() );
- else
- setSelected( myList->topItem() + 1 );
-
- return true;
+ ScrollEvent* se = (ScrollEvent*)e;
+ if ( se->isDown() )
+ setSelected( myList->topItem() + myList->numItemsVisible() );
+ else
+ setSelected( myList->topItem() + 1 );
+
+ return true;
}
/*!