VAPOR3 3.9.4
Public Member Functions | List of all members
VDoubleValidator Class Reference

#include <VDoubleValidator.h>

Inheritance diagram for VDoubleValidator:

Public Member Functions

virtual void fixup (QString &input) const override
 
virtual QValidator::State validate (QString &input, int &pos) const override
 

Detailed Description

Use as a direct replacement of QDoubleValidator. They behave the same except QDoubleValidator does not accept values outside the range while VDoubleValidator does not allow the user to input values outside of the range. This solves some quirks with QLineEdit With QDoubleValidator, the user can type a value outside the range in the text box but the text box will say the value is invalid and it will stop working VDoubleValidator, will not allow the user to type in a value outside the range omitting the above problem.

Definition at line 15 of file VDoubleValidator.h.

Member Function Documentation

◆ fixup()

virtual void VDoubleValidator::fixup ( QString &  input) const
overridevirtual

◆ validate()

virtual QValidator::State VDoubleValidator::validate ( QString &  input,
int &  pos 
) const
overridevirtual

The documentation for this class was generated from the following file: