obs-studio/UI/double-slider.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
431 B
C++
Raw Normal View History

#pragma once
2015-03-18 01:33:21 +00:00
#include <QSlider>
#include "slider-ignorewheel.hpp"
2015-03-18 01:33:21 +00:00
class DoubleSlider : public SliderIgnoreScroll {
2015-03-18 01:33:21 +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);
};