49 QValidator::State
validate( QString &input,
int & )
const override
51 if ( input.isEmpty() )
54 if ( b >= 0 && input.startsWith(
'-' ) )
57 if ( t < 0 && input.startsWith(
'+' ) )
60 if ( input == QLatin1String(
"-" ) || input == QLatin1String(
"+" ) )
65 const qlonglong entered = input.toLongLong( &ok );
69 if ( entered >= b && entered <= t )
76 return ( entered > t && -entered < b ) ? Invalid : Intermediate;
80 return ( entered < b ) ? Invalid : Intermediate;