From: stv Date: Thu, 2 Jun 2005 08:56:16 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: T3_0_0_a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a6303ef6c576df8bfba92b071f203ddc6ac17ee;p=modules%2Fgui.git *** empty log message *** --- 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; } /*!