Changeset 894

Show
Ignore:
Timestamp:
08/09/07 17:08:36 (1 year ago)
Author:
timdewhirst
Message:

jahwidgets
- fix for hit detection on in/out points

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jahwidgets/src/qt3/widgets/timelineSlider.cpp

    r892 r894  
    279279                // We've got to be in the thumb rect and outside the currentMarkerRect region 
    280280                if ( inRect().contains( pos ) == false ) return false; 
    281  
    282                 // else check the marker rect 
    283                 QRect markerRect = currentMarkerRect(); 
    284                 return (pos.y() > markerRect.bottom() || pos.y() < markerRect.top()); 
     281                return true; 
    285282        } 
    286283 
     
    289286                // We've got to be in the thumb rect and outside the currentMarkerRect region 
    290287                if ( outRect().contains( pos ) == false ) return false; 
    291  
    292                 // else check the marker rect 
    293                 QRect markerRect = currentMarkerRect(); 
    294                 return (pos.y() > markerRect.bottom() || pos.y() < markerRect.top()); 
     288                return true; 
    295289        } 
    296290 
     
    11421136        }                
    11431137        // else hit test the in/out points (and marker) and re-paint if necessary 
    1144         else { 
     1138        else  
     1139        { 
    11451140                // Avoid an update unless we need one 
    11461141                bool needsUpdate = false;