KDatePickerPopup Class Reference
This menu helps the user to select a date quickly. More...
#include <kdatepickerpopup.h>
Inherits QPopupMenu.
Public Types
- enum { NoDate = 1, DatePicker = 2, Words = 4 }
Signals
- void dateChanged (QDate)
Public Member Functions
- KDatePickerPopup (int items=2, const QDate &date=QDate::currentDate(), QWidget *parent=0, const char *name=0)
- KDatePicker * datePicker () const
- void setDate (const QDate &date)
- void setItems (int items=1)
- int items () const
Protected Slots
- void slotDateChanged (QDate)
- void slotToday ()
- void slotTomorrow ()
- void slotFriday ()
- void slotSunday ()
- void slotNextWeek ()
- void slotNextMonth ()
- void slotNoDate ()
Detailed Description
This menu helps the user to select a date quickly.This menu helps the user to select a date quicly. It offers various ways of selecting, e.g. with a KDatePicker or with words like "Tomorrow".
The available items are:
- NoDate: A menu-item with "No Date". If choosen, the datepicker will emit a null QDate.
- DatePicker: Show a KDatePicker-widget.
- Words: Show items like "Today", "Tomorrow" or "Next Week".
- Author:
- Bram Schoenmakers <bram_s@softhome.net>
Constructor & Destructor Documentation
|
A constructor for the KDatePickerPopup.
|
Member Function Documentation
|
|
|
Set items which should be shown and rebuilds the menu afterwards. Only if the menu is not visible.
|
|
|
|
This signal emits the new date (selected with datepicker or other menu-items).
|
The documentation for this class was generated from the following files:
- kdatepickerpopup.h
- kdatepickerpopup.cpp