Logo Search packages:      
Sourcecode: zanshin version File versions  Download package

KPIM::KDateEdit Class Reference

#include <kdateedit.h>

List of all members.


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, yesterday, today, monday, tuesday, wednesday, thursday, friday, saturday, sunday.

kdateedit.png

This is how it looks

Author:
Cornelius Schumacher <schumacher@kde.org>

Mike Pilone <mpilone@slac.com>

David Jarvie <software@astrojar.org.uk>

Tobias Koenig <tokoe@kde.org>

Definition at line 56 of file kdateedit.h.


Public Slots

void setDate (const QDate &date)

Signals

void dateChanged (const QDate &date)
void dateEntered (const QDate &date)

Public Member Functions

QDate date () const
bool isReadOnly () const
 KDateEdit (QWidget *parent=0, const char *name=0)
void setReadOnly (bool readOnly)
virtual void showPopup ()

Protected Slots

void dateSelected (const QDate &)
void lineEnterPressed ()
void slotTextChanged (const QString &)

Protected Member Functions

virtual bool assignDate (const QDate &date)
virtual bool eventFilter (QObject *, QEvent *)
virtual void focusOutEvent (QFocusEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void mousePressEvent (QMouseEvent *)
void setupKeywords ()

Private Member Functions

QDate parseDate (bool *replaced=0) const
void updateView ()

Private Attributes

QDate mDate
bool mDiscardNextMousePress
QMap< QString, int > mKeywordMap
KDatePickerPopupmPopup
bool mReadOnly
bool mTextChanged

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index