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:
Wladimir Leuschner 2024-05-08 09:43:51 +02:00 committed by Qt Cherry-pick Bot
parent dcc482cd01
commit 78bf5f7ccd

View File

@ -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);
}