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

void QTodoDateEdit::setMonth ( int  month  )  [protected, virtual]

Sets the month to month, which must be a valid month, i.e. between 1 and 12.

Definition at line 1552 of file qtodo_datetimeedit.cpp.

References outOfRange(), and setDay().

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

{
      if ( month < 1 )
            month = 1;
      if ( month > 12 )
            month = 12;
      if ( !outOfRange( d->y, month, d->d ) )
      {
            d->m = month;
            int tmp = d->dayCache;
            setDay( d->dayCache );
            d->dayCache = tmp;
      }
}


Generated by  Doxygen 1.6.0   Back to index