yolobs-studio/obs/double-slider.hpp

23 lines
383 B
C++
Raw Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include <QSlider>
class DoubleSlider : public QSlider {
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);
};