kalarm/lib
DateEdit Class Reference
#include <dateedit.h>

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().
Definition at line 41 of file dateedit.h.
Public Member Functions | |
| DateEdit (QWidget *parent=0) | |
| bool | isValid () const |
| const QDate & | maxDate () const |
| const QDate & | minDate () const |
| void | setInvalid () |
| void | setMaxDate (const QDate &date, const QString &errorDate=QString()) |
| void | setMinDate (const QDate &date, const QString &errorDate=QString()) |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
Constructor & Destructor Documentation
| DateEdit::DateEdit | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor.
- Parameters:
-
parent The parent object of this widget.
Definition at line 30 of file dateedit.cpp.
Member Function Documentation
| bool DateEdit::isValid | ( | ) | const [inline] |
| void DateEdit::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
| void DateEdit::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 118 of file dateedit.cpp.
| const QDate& DateEdit::maxDate | ( | ) | const [inline] |
Returns the latest date which can be entered.
If there is no maximum date, returns an invalid date.
Definition at line 58 of file dateedit.h.
| const QDate& DateEdit::minDate | ( | ) | const [inline] |
Returns the earliest date which can be entered.
If there is no minimum date, returns an invalid date.
Definition at line 54 of file dateedit.h.
| void DateEdit::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 106 of file dateedit.cpp.
| void DateEdit::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void DateEdit::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 100 of file dateedit.cpp.
| void DateEdit::setInvalid | ( | ) |
Sets the latest date which can be entered.
- Parameters:
-
date Latest date allowed. If invalid, any maximum limit is removed. errorDate Error message to be displayed when a date later than dateis entered. Set to QString() to use the default error message.
Definition at line 44 of file dateedit.cpp.
Sets the earliest date which can be entered.
- Parameters:
-
date Earliest date allowed. If invalid, any minimum limit is removed. errorDate Error message to be displayed when a date earlier than dateis entered. Set to QString() to use the default error message.
Definition at line 36 of file dateedit.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference