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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
596 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)
2016-02-23 23:16:51 +00:00
return (Qt::LeftButton | Qt::MidButton);
return QProxyStyle::styleHint(hint, option, widget, returnData);
}