QValidator::State DlgValidatorDateTime::validate (QString &input, int & /* pos */) const { FormatDateTime formatDateTime; double value; return formatDateTime.parseInput (m_coordUnitsDate, m_coordUnitsTime, input, value); }
bool TestFormats::stateYearMonthDayHourMinuteSecond (const QString &string, QValidator::State stateExpected) { FormatDateTime format; double value; bool success = (stateExpected == format.parseInput (COORD_UNITS_DATE_YEAR_MONTH_DAY, COORD_UNITS_TIME_HOUR_MINUTE_SECOND, string, value)); return success; }