Logo Search packages:      
Sourcecode: qtodo version File versions  Download package

bool QTodoTimeEdit::outOfRange ( int  h,
int  m,
int  s 
) const [protected, virtual]

For internal use only.

Returns TRUE if h, m, and s are out of range.

Definition at line 2630 of file qtodo_datetimeedit.cpp.

References maxValue, and minValue.

Referenced by addNumber(), stepDown(), and stepUp().

{
      if ( QTime::isValid( h, m, s ) )
      {
            QTime currentTime( h, m, s );
            if ( currentTime > maxValue() ||
                    currentTime < minValue() )
                  return TRUE;
            else
                  return FALSE;
      }
      return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index