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

void QTodoTimeEdit::removeLastNumber ( int  sec  )  [protected, virtual]

Implements QTodoDateTimeEditBase.

Definition at line 2846 of file qtodo_datetimeedit.cpp.

{
      if ( sec == -1 )
            return;
      sec = d->ed->mapSection( sec );
      QString txt;
      switch( sec )
      {
      case 0:
            txt = QString::number( d->h );
            break;
      case 1:
            txt = QString::number( d->m );
            break;
      case 2:
            txt = QString::number( d->s );
            break;
      }
      txt = txt.mid( 0, txt.length()-1 );
      switch( sec )
      {
      case 0:
            d->h = txt.toInt();
            break;
      case 1:
            d->m = txt.toInt();
            break;
      case 2:
            d->s = txt.toInt();
            break;
      }
      d->ed->repaint( d->ed->rect(), FALSE );
}


Generated by  Doxygen 1.6.0   Back to index