Change slider behaviour to jumping directly when clicking

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2025-03-22 16:48:29 +00:00
parent dd3a4023c9
commit 3a508bdc78
2 changed files with 6 additions and 3 deletions

View File

@@ -26,5 +26,11 @@ int HintOverrideProxyStyle::styleHint(QStyle::StyleHint hint,
if (hint == QStyle::SH_ItemView_ActivateItemOnSingleClick)
return 0;
if (hint == QStyle::SH_Slider_AbsoluteSetButtons)
return Qt::LeftButton | Qt::MiddleButton;
if (hint == QStyle::SH_Slider_PageSetButtons)
return Qt::RightButton;
return QProxyStyle::styleHint(hint, option, widget, returnData);
}