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

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

Implements QTodoDateTimeEditBase.

Definition at line 1964 of file qtodo_datetimeedit.cpp.

{
      if ( sec == -1 )
            return;
      QString txt;
      if ( sec == d->yearSection )
      {
            txt = QString::number( d->y );
            txt = txt.mid( 0, txt.length()-1 );
            d->y = txt.toInt();
      }
      else if ( sec == d->monthSection )
      {
            txt = QString::number( d->m );
            txt = txt.mid( 0, txt.length()-1 );
            d->m = txt.toInt();
      }
      else if ( sec == d->daySection )
      {
            txt = QString::number( d->d );
            txt = txt.mid( 0, txt.length()-1 );
            d->d = txt.toInt();
            d->dayCache = d->d;
      }
      d->ed->repaint( d->ed->rect(), FALSE );
}


Generated by  Doxygen 1.6.0   Back to index