mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-24 18:25:50 -05:00
Rename function
This commit is contained in:
committed by
WarmUpTill
parent
8d9519c849
commit
37cc289204
@@ -21,7 +21,7 @@ MacroSegmentSelection::MacroSegmentSelection(QWidget *parent, Type type,
|
||||
{
|
||||
_index->setMinimum(0);
|
||||
_index->setMaximum(99);
|
||||
_index->specialValueText("-");
|
||||
_index->setSpecialValueText("-");
|
||||
if (!allowVariables) {
|
||||
_index->DisableVariableSelection();
|
||||
}
|
||||
|
||||
@@ -82,9 +82,10 @@ template<typename T> bool NumberVariable<T>::HasValidValue() const
|
||||
auto value = var->IntValue();
|
||||
return value.has_value();
|
||||
} else if constexpr (std::is_same<T, double>::value) {
|
||||
auto value = var->IntValue();
|
||||
auto value = var->DoubleValue();
|
||||
return value.has_value();
|
||||
}
|
||||
|
||||
assert(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ void GenericVaraiableSpinbox::setSuffix(const QString &suffix)
|
||||
_fixedValueDouble->setSuffix(suffix);
|
||||
}
|
||||
|
||||
void GenericVaraiableSpinbox::specialValueText(const QString &text)
|
||||
void GenericVaraiableSpinbox::setSpecialValueText(const QString &text)
|
||||
{
|
||||
_fixedValueInt->setSpecialValueText(text);
|
||||
_fixedValueDouble->setSpecialValueText(text);
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
void setPrefix(const QString &prefix);
|
||||
void setSuffix(const QString &suffix);
|
||||
|
||||
void specialValueText(const QString &text);
|
||||
void setSpecialValueText(const QString &text);
|
||||
|
||||
public slots:
|
||||
void SetFixedValue(int);
|
||||
|
||||
Reference in New Issue
Block a user