diff --git a/include/wble/DoubleSlider.h b/include/wble/DoubleSlider.h index 4bb8436..e05c9e0 100644 --- a/include/wble/DoubleSlider.h +++ b/include/wble/DoubleSlider.h @@ -14,7 +14,8 @@ class WBLE_EXPORT DoubleSlider : public QSlider /// @param min Minimum value of slider. /// @param max Maximum value of slider. /// @param parent Parent widget. - DoubleSlider(double min, double max, QWidget* parent = nullptr); + DoubleSlider(double min, double max, QWidget* parent); + DoubleSlider(double min, double max); /// Get slider minimum value. /// @return Slider minimum value. diff --git a/include/wble/FilterNumbers.h b/include/wble/FilterNumbers.h index ed366f9..6243308 100644 --- a/include/wble/FilterNumbers.h +++ b/include/wble/FilterNumbers.h @@ -21,8 +21,8 @@ class WBLE_EXPORT FilterNumbers : public Filter { Q_OBJECT public: - FilterNumbers(const QString& name, double from, double to, - QWidget* parent = nullptr); + FilterNumbers(const QString& name, double from, double to, QWidget* parent); + FilterNumbers(const QString& name, double from, double to); ~FilterNumbers() override; diff --git a/src/DoubleSlider.cpp b/src/DoubleSlider.cpp index a4a394b..8178563 100644 --- a/src/DoubleSlider.cpp +++ b/src/DoubleSlider.cpp @@ -30,6 +30,11 @@ DoubleSlider::DoubleSlider(double min, double max, QWidget* parent) setHandleRect(); } +DoubleSlider::DoubleSlider(double min, double max) + : DoubleSlider(min, max, nullptr) +{ +} + double DoubleSlider::getCurrentMin() const { return currentMin_; } double DoubleSlider::getCurrentMax() const { return currentMax_; } diff --git a/src/FilterNumbers.cpp b/src/FilterNumbers.cpp index e2f47aa..179597f 100644 --- a/src/FilterNumbers.cpp +++ b/src/FilterNumbers.cpp @@ -29,6 +29,11 @@ FilterNumbers::FilterNumbers(const QString& name, double from, double to, setDisabled(true); } +FilterNumbers::FilterNumbers(const QString& name, double from, double to) + : FilterNumbers(name, from, to, nullptr) +{ +} + FilterNumbers::~FilterNumbers() = default; void FilterNumbers::checkedStateChanged(bool checked) @@ -54,10 +59,7 @@ void FilterNumbers::changeEvent(QEvent* event) initColorForLineEdits(); } -int FilterNumbers::getDecimalPlaces() const -{ - return decimalPlaces_; -} +int FilterNumbers::getDecimalPlaces() const { return decimalPlaces_; } void FilterNumbers::initDoubleSlider() {