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

void QTodoTimeEdit::setHour ( int  h  )  [protected, virtual]

Sets the hour to h, which must be a valid hour, i.e. in the range 0..24.

Definition at line 2531 of file qtodo_datetimeedit.cpp.

Referenced by stepDown(), and stepUp().

{
      if ( h < 0 )
            h = 0;
      if ( h > 23 )
            h = 23;
      d->h = h;
}


Generated by  Doxygen 1.6.0   Back to index