kexi
KexiDateTableEdit Class Reference
#include <kexidatetableedit.h>
Inheritance diagram for KexiDateTableEdit:

Detailed Description
Editor class for Date type. It is a replacement QDateEdit due to usability problems: people are accustomed to use single-character cursor. Date format is retrieved from the KDE global settings. and input/output is performed using KLineEdit (from KexiInputTableEdit).
Definition at line 82 of file kexidatetableedit.h.
Public Member Functions | |
KexiDateTableEdit (KexiTableViewColumn &column, QScrollView *parent=0) | |
virtual | ~KexiDateTableEdit () |
virtual void | setupContents (QPainter *p, bool focused, QVariant val, QString &txt, int &align, int &x, int &y_offset, int &w, int &h) |
virtual QVariant | value () |
virtual bool | valueIsNull () |
virtual bool | valueIsEmpty () |
virtual bool | valueIsValid () |
Protected Member Functions | |
virtual void | setValueInternal (const QVariant &add, bool removeOld) |
QDate | dateValue () const |
Protected Attributes | |
KexiDateFormatter | m_formatter |
Constructor & Destructor Documentation
|
Definition at line 172 of file kexidatetableedit.cpp. |
Member Function Documentation
|
For reimplementation. Sets up anmd paints cell's contents using context of val value. focused is true if the cell is focused. align is set using Qt::AlignmentFlags. Some additional things may be painted using p, it's not needed to paint the text (this is done automatically outside. Before calling, x, y_offset, w, h parameters are initialized, but you can tune these values depending on the context. You should set txt to a text representation of val, otherwise no text will be painted. Reimplemented from KexiTableEdit. Definition at line 200 of file kexidatetableedit.cpp. |
|
Reimplemented from KexiInputTableEdit. Definition at line 186 of file kexidatetableedit.cpp. |
|
js
Reimplemented from KexiInputTableEdit. Definition at line 236 of file kexidatetableedit.cpp. |
|
Reimplemented from KexiInputTableEdit. Definition at line 226 of file kexidatetableedit.cpp. |
|
Reimplemented from KexiInputTableEdit. Definition at line 219 of file kexidatetableedit.cpp. |
|
Reimplemented from KexiDataItemInterface. Definition at line 246 of file kexidatetableedit.cpp. |
Member Data Documentation
|
Used to format and convert date values.
Definition at line 101 of file kexidatetableedit.h. |
The documentation for this class was generated from the following files: