diff --git a/ui/StatusQ/src/StatusQ/Controls/Validators/StatusFloatValidator.qml b/ui/StatusQ/src/StatusQ/Controls/Validators/StatusFloatValidator.qml index 838abee6ac..505ba8184c 100644 --- a/ui/StatusQ/src/StatusQ/Controls/Validators/StatusFloatValidator.qml +++ b/ui/StatusQ/src/StatusQ/Controls/Validators/StatusFloatValidator.qml @@ -27,10 +27,10 @@ StatusValidator { id: root /*! - \qmlproperty string 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). + \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. */ - property real bottom + property real bottom: qmlDoubleValidator.bottom /*! \qmlproperty string StatusFloatValidator::locale @@ -39,10 +39,16 @@ StatusValidator { property string locale /*! - \qmlproperty string 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). + \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. */ - 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" errorMessage: qsTr("Please enter a valid numeric value.")