df893dde81
When this class is used in conjunction with a QSlider control, allows direct setting of the slider handle position when clicking in an area other than the slider handle. The default QSlider handle behavior is to step towards clicked position.
13 lines
325 B
C++
13 lines
325 B
C++
#pragma once
|
|
|
|
#include <QProxyStyle>
|
|
|
|
class SliderAbsoluteSetStyle : public QProxyStyle
|
|
{
|
|
public:
|
|
SliderAbsoluteSetStyle(const QString& baseStyle);
|
|
SliderAbsoluteSetStyle(QStyle* baseStyle);
|
|
int styleHint(QStyle::StyleHint hint, const QStyleOption* option,
|
|
const QWidget* widget, QStyleHintReturn* returnData) const;
|
|
};
|