From 3a6303ef6c576df8bfba92b071f203ddc6ac17ee Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 2 Jun 2005 08:56:16 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxDockAction.cxx | 4 +++- src/Qtx/QtxListAction.cxx | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Qtx/QtxDockAction.cxx b/src/Qtx/QtxDockAction.cxx index 7e0187d85..a4c95128e 100755 --- a/src/Qtx/QtxDockAction.cxx +++ b/src/Qtx/QtxDockAction.cxx @@ -520,7 +520,7 @@ void QtxDockAction::onDockWindowPositionChanged( QDockWindow* dw ) bool QtxDockAction::event( QEvent* e ) { - if ( e->type() == AutoAdd ) + if ( e->type() == (int)AutoAdd ) { QCustomEvent* ce = (QCustomEvent*)e; QDockWindow* dw = (QDockWindow*)ce->data(); @@ -845,6 +845,8 @@ void QtxDockAction::loadPlaceArea( const int place, QMainWindow* mw, QDockArea* if ( !area ) return; + qApp->processEvents(); + for ( QPtrListIterator itr( dockList ); itr.current(); ++itr ) { QDockWindow* dw = itr.current(); diff --git a/src/Qtx/QtxListAction.cxx b/src/Qtx/QtxListAction.cxx index 5e40d158c..329c3d7a8 100755 --- a/src/Qtx/QtxListAction.cxx +++ b/src/Qtx/QtxListAction.cxx @@ -972,16 +972,16 @@ bool QtxListFrame::handleMouseEvent( QObject* o, QMouseEvent* e ) 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; } /*! -- 2.39.2