feat(StatusFloatValidator): Updated default `bottom` and `top` values

This commit is contained in:
Noelia 2022-07-03 12:34:23 +02:00 committed by Noelia
parent 29a61c7f5c
commit 016a0eac46
1 changed files with 12 additions and 6 deletions

View File

@ -27,10 +27,10 @@ StatusValidator {
id: root id: root
/*! /*!
\qmlproperty string StatusFloatValidator::bottom \qmlproperty real StatusFloatValidator::bottom
This property holds the validator's lowest acceptable value. By default, this property's value is derived from the lowest signed float available (typically -2147483647). This property holds the validator's lowest acceptable value. By default, this property's value is derived from the lowest signed float available.
*/ */
property real bottom property real bottom: qmlDoubleValidator.bottom
/*! /*!
\qmlproperty string StatusFloatValidator::locale \qmlproperty string StatusFloatValidator::locale
@ -39,10 +39,16 @@ StatusValidator {
property string locale property string locale
/*! /*!
\qmlproperty string StatusFloatValidator::top \qmlproperty real StatusFloatValidator::top
This property holds the validator's highest acceptable value. By default, this property's value is derived from the highest float available (typically 2147483647). This property holds the validator's highest acceptable value. By default, this property's value is derived from the highest float available.
*/ */
property real top property real top: qmlDoubleValidator.top
/*!
\qmlproperty DoubleValidator StatusFloatValidator::qmlDoubleValidator
This property holds a default qml double validator instance.
*/
readonly property DoubleValidator qmlDoubleValidator: DoubleValidator {}
name: "floatValidator" name: "floatValidator"
errorMessage: qsTr("Please enter a valid numeric value.") errorMessage: qsTr("Please enter a valid numeric value.")