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 *) |
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor.
Definition at line 28 of file dateedit.cpp. |
Member Function Documentation
|
|
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 50 of file dateedit.cpp. |
|
||||||||||||
|
Sets the latest date which can be entered.
Definition at line 42 of file dateedit.cpp. |
|
||||||||||||
|
Sets the earliest date which can be entered.
Definition at line 34 of file dateedit.cpp. |
The documentation for this class was generated from the following files:

