[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeui
From:       Stephan Binner <binner () kde ! org>
Date:       2004-05-28 12:15:09
Message-ID: 20040528121509.EB0459914 () office ! kde ! org
[Download RAW message or body]

CVS commit by binner: 

Ignore wheel events outside the tabbar area


  M +4 -1      ktabwidget.cpp   1.31


--- kdelibs/kdeui/ktabwidget.cpp  #1.30:1.31
@@ -116,4 +116,7 @@ void KTabWidget::wheelEvent( QWheelEvent
         return;
 
+    QPoint point( e->pos() );
+    QSize size( tabBar()->sizeHint() );
+    if ( ( tabPosition()==Top && point.y()< size.height() ) || ( \
tabPosition()==Bottom && point.y()>(height()-size.height() ) ) )  wheelDelta( \
e->delta() );  }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic