Skip to content

Commit

Permalink
Fix for the string conversion issue (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumykun authored Aug 2, 2023
1 parent 73d7a09 commit 7b160a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/qml/Library/RendererQml/NumberInputRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ void NumberInputElement::initialize()

if (mInput->GetValue().has_value())
{
mNumberInputQmlElement->Property("_value", RendererQml::Formatter() << mInput->GetValue().value());
mNumberInputQmlElement->Property("_value", std::to_string(mInput->GetValue().value()));
mNumberInputQmlElement->Property("_hasDefaultValue", "true");
}

mNumberInputQmlElement->Property("_minValue", RendererQml::Formatter() << mInput->GetMin().value_or(-DBL_MAX));
mNumberInputQmlElement->Property("_maxValue", RendererQml::Formatter() << mInput->GetMax().value_or(DBL_MAX));
mNumberInputQmlElement->Property("_minValue", std::to_string(mInput->GetMin().value_or(-DBL_MAX)));
mNumberInputQmlElement->Property("_maxValue", std::to_string(mInput->GetMax().value_or(DBL_MAX)));


if (mInput->GetIsRequired() || mInput->GetMin().has_value() || mInput->GetMax().has_value())
Expand Down

0 comments on commit 7b160a1

Please sign in to comment.