kalarm/lib
DateEdit Class Reference
#include <dateedit.h>
Inheritance diagram for DateEdit:

Detailed Description
Date edit widget with range limits.The DateEdit class provides a date editor with the ability to set limits on the dates which can be entered.
Minimum and/or maximum permissible dates may be set, together with corresponding error messages. If the user tries to enter a date outside the allowed range, the appropriate error message (if any) is output using KMessageBox::sorry().
- Author:
- David Jarvie <software@astrojar.org.uk>
Definition at line 37 of file dateedit.h.
Public Member Functions | |
DateEdit (QWidget *parent=0, const char *name=0) | |
bool | isValid () const |
const QDate & | minDate () const |
const QDate & | maxDate () const |
void | setMinDate (const QDate &date, const QString &errorDate=QString::null) |
void | setMaxDate (const QDate &date, const QString &errorDate=QString::null) |
void | setInvalid () |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
virtual bool | assignDate (const QDate &date) |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 28 of file dateedit.cpp. |
Member Function Documentation
|
Checks whether If so, sets the new value. If not, an error message is displayed. Reimplemented from KDateEdit. Definition at line 55 of file dateedit.cpp. |
|
Returns true if the widget contains a valid date.
Definition at line 47 of file dateedit.h. |
|
Returns the latest date which can be entered. If there is no maximum date, returns an invalid date. Definition at line 55 of file dateedit.h. |
|
Returns the earliest date which can be entered. If there is no minimum date, returns an invalid date. Definition at line 51 of file dateedit.h. |
|
Sets the date held in the widget to an invalid date.
Definition at line 49 of file dateedit.cpp. |
|
Sets the latest date which can be entered.
Definition at line 41 of file dateedit.cpp. |
|
Sets the earliest date which can be entered.
Definition at line 33 of file dateedit.cpp. |
The documentation for this class was generated from the following files: