From c821bb20d0e5c1b22dfbb64cd287b6f71b05222c Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 15 Apr 2023 00:32:16 +0200 Subject: [PATCH] Add specialValueText() to variable spinbox --- src/utils/variable-spinbox.cpp | 6 ++++++ src/utils/variable-spinbox.hpp | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/utils/variable-spinbox.cpp b/src/utils/variable-spinbox.cpp index f4cea0fb..bbfd55dd 100644 --- a/src/utils/variable-spinbox.cpp +++ b/src/utils/variable-spinbox.cpp @@ -100,6 +100,12 @@ void GenericVaraiableSpinbox::setSuffix(const QString &suffix) _fixedValueDouble->setSuffix(suffix); } +void GenericVaraiableSpinbox::specialValueText(const QString &text) +{ + _fixedValueInt->setSpecialValueText(text); + _fixedValueDouble->setSpecialValueText(text); +} + void GenericVaraiableSpinbox::SetFixedValue(int value) { _numberInt._value = value; diff --git a/src/utils/variable-spinbox.hpp b/src/utils/variable-spinbox.hpp index 53852afe..fee72802 100644 --- a/src/utils/variable-spinbox.hpp +++ b/src/utils/variable-spinbox.hpp @@ -17,10 +17,12 @@ public: void setMinimum(double value); void setMaximum(double value); - //void setValue(double value); + void setPrefix(const QString &prefix); void setSuffix(const QString &suffix); + void specialValueText(const QString &text); + public slots: void SetFixedValue(int); void SetFixedValue(double);