QWindows11Style: Use absolute Slider positioning
WinUI3 changed the behavior of Sliders by not using steps anymore but by absolute change. Fixes: QTBUG-125154 Pick-to: 6.7.1 Change-Id: I708f2584432b277b0c1fc0b2587137ce71714e69 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit 392c5fab815cbe41df9e25e50e4d296e7e1606f6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
dcc482cd01
commit
78bf5f7ccd
@ -1738,6 +1738,10 @@ int QWindows11Style::styleHint(StyleHint hint, const QStyleOption *opt,
|
||||
return 0;
|
||||
case QStyle::SH_ItemView_ShowDecorationSelected:
|
||||
return 1;
|
||||
case QStyle::SH_Slider_AbsoluteSetButtons:
|
||||
return Qt::LeftButton;
|
||||
case QStyle::SH_Slider_PageSetButtons:
|
||||
return 0;
|
||||
default:
|
||||
return QWindowsVistaStyle::styleHint(hint, opt, widget, returnData);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user