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

void QTodoDateEdit::updateButtons (  )  [protected, slot]

Enables/disables the push buttons according to the min/max date for this widget.

Definition at line 1230 of file qtodo_datetimeedit.cpp.

References date, maxValue, and minValue.

Referenced by init(), and QTodoDateEdit().

      if ( !isEnabled() )

      bool upEnabled = date() < maxValue();
      bool downEnabled = date() > minValue();

      d->controls->setUpEnabled( upEnabled );
      d->controls->setDownEnabled( downEnabled );

Generated by  Doxygen 1.6.0   Back to index