obs-studio/UI/double-slider.hpp

24 lines
431 B
C++
Raw Normal View History

#pragma once
2015-03-17 18:33:21 -07:00
#include <QSlider>
#include "slider-ignorewheel.hpp"
2015-03-17 18:33:21 -07:00
class DoubleSlider : public SliderIgnoreScroll {
2015-03-17 18:33:21 -07:00
Q_OBJECT
double minVal, maxVal, minStep;
public:
DoubleSlider(QWidget *parent = nullptr);
void setDoubleConstraints(double newMin, double newMax, double newStep,
double val);
2015-03-17 18:33:21 -07:00
signals:
void doubleValChanged(double val);
public slots:
void intValChanged(int val);
void setDoubleVal(double val);
};