From 78bf5f7ccd63afef3e7bd6fbd7e58022b32b5b09 Mon Sep 17 00:00:00 2001 From: Wladimir Leuschner Date: Wed, 8 May 2024 09:43:51 +0200 Subject: [PATCH] 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 (cherry picked from commit 392c5fab815cbe41df9e25e50e4d296e7e1606f6) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/styles/modernwindows/qwindows11style.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/styles/modernwindows/qwindows11style.cpp b/src/plugins/styles/modernwindows/qwindows11style.cpp index 65db8245bd4..e7dd3aa7a13 100644 --- a/src/plugins/styles/modernwindows/qwindows11style.cpp +++ b/src/plugins/styles/modernwindows/qwindows11style.cpp @@ -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); }