2016-02-23 23:16:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSlider>
|
2019-07-27 12:47:10 +00:00
|
|
|
#include "slider-ignorewheel.hpp"
|
2016-02-23 23:16:51 +00:00
|
|
|
|
2019-07-27 12:47:10 +00:00
|
|
|
class DoubleSlider : public SliderIgnoreScroll {
|
2016-02-23 23:16:51 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
double minVal, maxVal, minStep;
|
|
|
|
|
|
|
|
public:
|
|
|
|
DoubleSlider(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void setDoubleConstraints(double newMin, double newMax,
|
|
|
|
double newStep, double val);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void doubleValChanged(double val);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void intValChanged(int val);
|
|
|
|
void setDoubleVal(double val);
|
|
|
|
};
|