libkdepim
#include <kdatepickerpopup.h>
Public Types | |
enum | Mode { NoDate = 1, DatePicker = 2, Words = 4 } |
Public Slots | |
void | setDate (const QDate &date) |
Signals | |
void | dateChanged (const QDate &date) |
Public Member Functions | |
KDatePickerPopup (Modes modes=DatePicker, const QDate &date=QDate::currentDate(), QWidget *parent=0) | |
~KDatePickerPopup () | |
KDatePicker * | datePicker () const |
Detailed Description
This menu helps the user to select a date quickly.
This menu helps the user to select a date quickly. It offers various modes of selecting, e.g. with a KDatePicker or with words like "Tomorrow".
The available modes are:
- NoDate: A menu-item with "No Date". If chosen, the datepicker will emit a null QDate.
- DatePicker: Shows a KDatePicker-widget.
- Words: Shows items like "Today", "Tomorrow" or "Next Week".
Definition at line 48 of file kdatepickerpopup.h.
Member Enumeration Documentation
Describes the available selection modes.
Enumerator | |
---|---|
NoDate |
A menu-item with "No Date". Will always return an invalid date. |
DatePicker |
A menu-item with a KDatePicker. |
Words |
A menu-item with list of words that describe a date. |
Definition at line 56 of file kdatepickerpopup.h.
Constructor & Destructor Documentation
|
explicit |
Describes the a set of combined modes.
Creates a new date picker popup.
- Parameters
-
modes The selection modes that shall be offered date The initial date of date picker widget. parent The parent object.
Definition at line 144 of file kdatepickerpopup.cpp.
KDatePickerPopup::~KDatePickerPopup | ( | ) |
Destroys the date picker popup.
Definition at line 162 of file kdatepickerpopup.cpp.
Member Function Documentation
|
signal |
This signal is emitted whenever the user has selected a new date.
- Parameters
-
date The new date.
KDatePicker * KDatePickerPopup::datePicker | ( | ) | const |
Returns the used KDatePicker object.
Definition at line 167 of file kdatepickerpopup.cpp.
|
slot |
Sets the current date
.
Definition at line 172 of file kdatepickerpopup.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.