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) |
void | invalidDateEntered () |
Public Member Functions | |
KDateEdit (QWidget *parent=0, const char *name=0) | |
bool | inputIsValid () const |
QDate | date () const |
void | setDate (const QDate &date) |
QDate | defaultDate () const |
void | setDefaultDate (const QDate &date) |
void | setHandleInvalid (bool handleInvalid) |
bool | handlesInvalid () const |
void | setReadOnly (bool readOnly) |
bool | isReadOnly () const |
virtual bool | validate (const QDate &newDate) |
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 46 of file kdateedit.h.
Member Function Documentation
|
Definition at line 233 of file kdateedit.cpp. |
|
Definition at line 138 of file kdateedit.cpp. |
|
Sets the date.
Definition at line 91 of file kdateedit.cpp. |
|
Definition at line 145 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 150 of file kdateedit.cpp. |
|
Definition at line 112 of file kdateedit.cpp. |
|
Definition at line 117 of file kdateedit.cpp. |
|
Sets whether the widget is read-only for the user. If read-only, the date picker pop-up is inactive, and the displayed date cannot be edited.
Definition at line 122 of file kdateedit.cpp. |
|
Definition at line 128 of file kdateedit.cpp. |
|
Called when a new date has been entered, to validate its value.
Definition at line 133 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: