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

bool QTodoDateEdit::outOfRange ( int  y,
int  m,
int  d 
) const [protected, virtual]

For internal use only.

Returns TRUE if y, m, d is out of range, otherwise returns FALSE.

See also:
setRange()

Definition at line 1651 of file qtodo_datetimeedit.cpp.

References maxValue, and minValue.

Referenced by addNumber(), fix(), setDay(), setMonth(), setYear(), stepDown(), and stepUp().

{
      if ( QDate::isValid( y, m, d ) )
      {
            QDate currentDate( y, m, d );
            if ( currentDate > maxValue() ||
                    currentDate < minValue() )
            {
                  //## outOfRange should set overwrite?
                  return TRUE;
            }
            return FALSE;
      }
      return FALSE; /* assume ok */
}


Generated by  Doxygen 1.6.0   Back to index