2015-04-04 06:13:48 -07:00
|
|
|
#include "slider-absoluteset-style.hpp"
|
|
|
|
|
2019-06-22 22:13:45 -07:00
|
|
|
SliderAbsoluteSetStyle::SliderAbsoluteSetStyle(const QString &baseStyle)
|
|
|
|
: QProxyStyle(baseStyle)
|
2015-04-04 06:13:48 -07:00
|
|
|
{
|
|
|
|
}
|
2019-06-22 22:13:45 -07:00
|
|
|
SliderAbsoluteSetStyle::SliderAbsoluteSetStyle(QStyle *baseStyle)
|
|
|
|
: QProxyStyle(baseStyle)
|
2015-04-04 06:13:48 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
int SliderAbsoluteSetStyle::styleHint(QStyle::StyleHint hint,
|
2019-06-22 22:13:45 -07:00
|
|
|
const QStyleOption *option = 0,
|
|
|
|
const QWidget *widget = 0,
|
|
|
|
QStyleHintReturn *returnData = 0) const
|
2015-04-04 06:13:48 -07:00
|
|
|
{
|
2019-06-22 22:13:45 -07:00
|
|
|
if (hint == QStyle::SH_Slider_AbsoluteSetButtons)
|
2015-04-04 06:13:48 -07:00
|
|
|
return (Qt::LeftButton | Qt::MidButton);
|
|
|
|
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
|
|
|
}
|