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

KDatePickerPopup::KDatePickerPopup ( Items  items = DatePicker,
const QDate &  date = QDate::currentDate(),
QWidget *  parent = 0 
) [explicit]

A constructor for the KDatePickerPopup.

Parameters:
items List of all desirable items, separated with a bitwise OR.
date Initial date of datepicker-widget.
parent The object's parent.
name The object's name.

Definition at line 62 of file kdatepickerpopup.cpp.

  : QMenu( parent )
{
  mItems = items;

  mDatePicker = new KDatePicker( this );
  mDatePicker->setCloseButton( false );

  connect( mDatePicker, SIGNAL( dateEntered( const QDate& ) ),
           SLOT( slotDateChanged( const QDate& ) ) );
  connect( mDatePicker, SIGNAL( dateSelected( const QDate& ) ),
           SLOT( slotDateChanged( const QDate& ) ) );

  mDatePicker->setDate( date );

  buildMenu();
}


Generated by  Doxygen 1.6.0   Back to index