f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
24 lines
431 B
C++
24 lines
431 B
C++
#pragma once
|
|
|
|
#include <QSlider>
|
|
#include "slider-ignorewheel.hpp"
|
|
|
|
class DoubleSlider : public SliderIgnoreScroll {
|
|
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);
|
|
};
|