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

QString QTodoDateEdit::sectionText ( int  sec  )  const [private]

Returns the text of section sec. This will correspond to either the year, month or day section, depending on the current display order.

See also:
setOrder()

Definition at line 1330 of file qtodo_datetimeedit.cpp.

Referenced by sectionFormattedText().

{
      int val = 0;
      if ( sec == d->yearSection )
      {
            val = d->y;
      }
      else if ( sec == d->monthSection )
      {
            val = d->m;
      }
      else if ( sec == d->daySection )
      {
            val = d->d;
      }
      return QString::number( val );
}


Generated by  Doxygen 1.6.0   Back to index