Change slider behaviour to jumping directly when clicking
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user