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

QSize QTodoDateEdit::sizeHint (  )  const

Definition at line 1252 of file qtodo_datetimeedit.cpp.

Referenced by minimumSizeHint(), QTodoDateTimeEdit::resizeEvent(), and QTodoDateTimeEdit::sizeHint().

{
      constPolish();
      QFontMetrics fm( font() );
//    int fw = style().pixelMetric( QStyle::PM_DefaultFrameWidth, this );
      int h = QMAX( fm.lineSpacing(), 14 ) ; //+ 2;
      d->controls->arrange();
      int w = /*2 +*/ fm.width( '9' ) * 8 + fm.width( d->ed->separator() ) * 2 + m_spin_width /*+ fw * 4*/;

      return QSize( w, QMAX(h + 0 /*fw * 2*/,16) ).expandedTo( QApplication::globalStrut() );
}


Generated by  Doxygen 1.6.0   Back to index