Show
Ignore:
Timestamp:
10/19/06 06:46:34 (2 years ago)
Author:
erijo
Message:

Use CETabWidget instead of QTabWidget all over the place, to be able to switch tabs with the mouse wheel. Thanks to Fabian for suggesting this (and supplying a patch). Closes #1422.

Also fixes a small bug in the "mouse wheel" logic. Without this fix, you could use the mouse wheel anywhere in the options dialog to change tabs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/ewidgets.cpp

    r4702 r4716  
    528528void CETabBar::wheelEvent(QWheelEvent *e) 
    529529{ 
    530   if (count() <= 1) 
     530  if (count() <= 1 || !hasMouse()) 
    531531  { 
    532532    e->ignore();