DateEdit Class Reference
The DateEdit class provides a date editor with the ability to set limits on the dates which can be entered. Date edit widget with range limits. More...
#include <dateedit.h>
Inherits KDateEdit.
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)
Detailed Description
The DateEdit class provides a date editor with the ability to set limits on the dates which can be entered. Date edit widget with range limits.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>
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Returns true if the widget contains a valid date.
|
|
Returns the earliest date which can be entered. If there is no minimum date, returns an invalid date. |
|
Returns the latest date which can be entered. If there is no maximum date, returns an invalid date. |
|
Sets the earliest date which can be entered.
|
|
Sets the latest date which can be entered.
|
|
Sets the date held in the widget to an invalid date.
|
|
Checks whether If so, sets the new value. If not, an error message is displayed. |
The documentation for this class was generated from the following files:
- dateedit.h
- dateedit.cpp