qt-material-widgets/components/qtmaterialslider_p.h

50 lines
1.0 KiB
C
Raw Normal View History

2017-09-29 13:53:18 +00:00
#ifndef QTMATERIALSLIDER_P_H
#define QTMATERIALSLIDER_P_H
#include <QColor>
#include <QRectF>
2022-07-14 09:54:17 +00:00
#include <QtGlobal>
2017-09-29 13:53:18 +00:00
class QtMaterialSlider;
class QtMaterialSliderThumb;
class QtMaterialSliderTrack;
class QtMaterialSliderStateMachine;
class QtMaterialSliderPrivate
{
Q_DISABLE_COPY(QtMaterialSliderPrivate)
Q_DECLARE_PUBLIC(QtMaterialSlider)
public:
QtMaterialSliderPrivate(QtMaterialSlider *q);
~QtMaterialSliderPrivate();
void init();
QRectF trackBoundingRect() const;
QRectF thumbBoundingRect() const;
int valueFromPosition(const QPoint &pos) const;
void setHovered(bool status);
2022-07-14 09:54:17 +00:00
QtMaterialSlider *const q_ptr;
QtMaterialSliderThumb *thumb;
QtMaterialSliderTrack *track;
2017-09-29 13:53:18 +00:00
QtMaterialSliderStateMachine *stateMachine;
2022-07-14 09:54:17 +00:00
QColor thumbColor;
QColor trackColor;
QColor disabledColor;
int stepTo;
int oldValue;
int trackWidth;
bool hoverTrack;
bool hoverThumb;
bool hover;
bool step;
bool pageStepMode;
bool useThemeColors;
2017-09-29 13:53:18 +00:00
};
2022-07-14 09:54:17 +00:00
#endif // QTMATERIALSLIDER_P_H