yolobs-studio/UI/slider-absoluteset-style.cpp

21 lines
599 B
C++
Raw Normal View History

2016-02-23 23:16:51 +00:00
#include "slider-absoluteset-style.hpp"
2019-09-22 21:19:10 +00:00
SliderAbsoluteSetStyle::SliderAbsoluteSetStyle(const QString &baseStyle)
: QProxyStyle(baseStyle)
2016-02-23 23:16:51 +00:00
{
}
2019-09-22 21:19:10 +00:00
SliderAbsoluteSetStyle::SliderAbsoluteSetStyle(QStyle *baseStyle)
: QProxyStyle(baseStyle)
2016-02-23 23:16:51 +00:00
{
}
int SliderAbsoluteSetStyle::styleHint(QStyle::StyleHint hint,
2019-09-22 21:19:10 +00:00
const QStyleOption *option = 0,
const QWidget *widget = 0,
QStyleHintReturn *returnData = 0) const
2016-02-23 23:16:51 +00:00
{
2019-09-22 21:19:10 +00:00
if (hint == QStyle::SH_Slider_AbsoluteSetButtons)
2020-12-22 17:32:50 +00:00
return (Qt::LeftButton | Qt::MiddleButton);
2016-02-23 23:16:51 +00:00
return QProxyStyle::styleHint(hint, option, widget, returnData);
}