Skip to content
  • Shawn Rutledge's avatar
    Slider: don't prevent stealing until drag threshold is exceeded · 354ff5e7
    Shawn Rutledge authored
    If a Slider is placed in a Flickable (or ListView, etc.),
    preventStealing means that you cannot flick the flickable by dragging
    over the Slider.  It's better to postpone setting that until we
    detect whether the user is really attempting to drag the slider,
    because we don't want to rule out use cases such as vertical sliders
    in a horizontal ListView or vice-versa, so that you drag in
    one direction to move the slider and in another direction to flick.
    Platform drag threshold is exposed in Settings (from QStyleHints).
    (reverts/refines c9665f3e
    
    )
    
    Change-Id: I82feda6028f6effa5b26ad575a1933e48e971453
    Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
    354ff5e7