KDateEdit Class Reference
A date editing widget that consists of an editable combo box. More...
#include <kdateedit.h>
Inheritance diagram for KDateEdit:

Signals | |
void | dateChanged (QDate) |
This signal is emitted whenever the user modifies the date. | |
void | invalidDateEntered () |
This signal is emitted whenever the user enters an invalid date. | |
Public Member Functions | |
KDateEdit (QWidget *parent=0, const char *name=0) | |
bool | inputIsValid () const |
QDate | date () const |
void | setDate (const QDate &date) |
Sets the date. | |
QDate | defaultDate () const |
void | setDefaultDate (const QDate &date) |
Sets the default date to use if no valid date has been set or entered. | |
void | setHandleInvalid (bool handleInvalid) |
virtual bool | validate (const QDate &newDate) |
Called when a new date has been entered, to validate its value. | |
virtual void | popup () |
Protected Slots | |
void | dateSelected (QDate) |
void | dateEntered (QDate) |
void | lineEnterPressed () |
void | slotTextChanged (const QString &) |
virtual void | mousePressEvent (QMouseEvent *) |
Detailed Description
A date editing widget that consists of an editable combo box.The combo box contains the date in text form, and clicking the combo box arrow will display a 'popup' style date picker.
This widget also supports advanced features like allowing the user to type in the day name to get the date. The following keywords are supported (in the native language): tomorrow, yesturday, today, monday, tuesday, wednesday, thursday, friday, saturday, sunday.
- Author:
- Cornelius Schumacher <schumacher@kde.org>
Mike Pilone <mpilone@slac.com>
David Jarvie <software@astrojar.org.uk>
Definition at line 49 of file kdateedit.h.
Member Function Documentation
|
Definition at line 211 of file kdateedit.cpp. References QDate::isValid(). |
|
Definition at line 121 of file kdateedit.cpp. References QDate::isValid(). |
|
Sets the date.
Definition at line 90 of file kdateedit.cpp. References QComboBox::changeItem(), and QDate::isValid(). |
|
Definition at line 130 of file kdateedit.cpp. |
|
Sets the default date to use if no valid date has been set or entered. If no default date has been set, the current date is used as the default.
Definition at line 135 of file kdateedit.cpp. |
|
Definition at line 111 of file kdateedit.cpp. |
|
Called when a new date has been entered, to validate its value.
Definition at line 116 of file kdateedit.cpp. |
|
This signal is emitted whenever the user modifies the date. This may not get emitted until the user presses enter in the line edit or focus leaves the widget (i.e. the user confirms their selection). |
|
This signal is emitted whenever the user enters an invalid date.
|
The documentation for this class was generated from the following files: