KDatePickerPopup Class Reference
#include <kdatepickerpopup.h>
Inherits TQPopupMenu.
Public Types | |
enum | { NoDate = 1 , DatePicker = 2 , Words = 4 } |
Signals | |
void | dateChanged (TQDate) |
Public Member Functions | |
KDatePickerPopup (int items=DatePicker, const TQDate &date=TQDate::currentDate(), TQWidget *parent=0, const char *name=0) | |
KDatePicker * | datePicker () const |
void | setDate (const TQDate &date) |
int | items () const |
Protected Slots | |
void | slotDateChanged (TQDate) |
void | slotToday () |
void | slotTomorrow () |
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 TQDate.
- DatePicker: Show a KDatePicker-widget.
- Words: Show items like "Today", "Tomorrow" or "Next Week".
When supplying multiple items, separate each item with a bitwise OR.
Definition at line 45 of file kdatepickerpopup.h.
Constructor & Destructor Documentation
◆ KDatePickerPopup()
KDatePickerPopup::KDatePickerPopup | ( | int | items = DatePicker , |
const TQDate & | date = TQDate::currentDate() , |
||
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
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 29 of file kdatepickerpopup.cpp.
Member Function Documentation
◆ dateChanged
|
signal |
This signal emits the new date (selected with datepicker or other menu-items).
◆ datePicker()
KDatePicker * KDatePickerPopup::datePicker | ( | ) | const |
- Returns
- A pointer to the private variable mDatePicker, an instance of KDatePicker.
Definition at line 74 of file kdatepickerpopup.cpp.
◆ items()
|
inline |
- Returns
- Returns the bitwise result of the active items in the popup.
Definition at line 78 of file kdatepickerpopup.h.
The documentation for this class was generated from the following files: