kexi
KexiDateFormatter Class Reference
#include <kexidatetableedit.h>
Detailed Description
Date formatter used by KexiDateTableEdit and KexiDateTimeTableEdit.
Definition at line 30 of file kexidatetableedit.h.
Public Member Functions | |
KexiDateFormatter () | |
~KexiDateFormatter () | |
QDate | stringToDate (const QString &str) const |
QString | dateToString (const QDate &date) const |
QString | inputMask () const |
QString | separator () const |
Protected Attributes | |
QString | m_inputMask |
QDateEdit::Order | m_order |
bool | m_longYear |
bool | m_monthWithLeadingZero |
bool | m_dayWithLeadingZero |
QString | m_qtFormat |
int | m_yearpos |
int | m_monthpos |
int | m_daypos |
QString | m_separator |
Constructor & Destructor Documentation
|
Creates new formatter with KDE setting for "short date".
Definition at line 49 of file kexidatetableedit.cpp. |
|
Definition at line 134 of file kexidatetableedit.cpp. |
Member Function Documentation
|
converts date to string using predefined settings
Definition at line 165 of file kexidatetableedit.cpp. |
|
Definition at line 51 of file kexidatetableedit.h. |
|
converts string str to date using predefined settings
Definition at line 138 of file kexidatetableedit.cpp. |
Member Data Documentation
|
Input mask generated using the formatter settings. Can be used in QLineEdit::setInputMask().
Definition at line 57 of file kexidatetableedit.h. |
|
4 or 2 digits
Definition at line 63 of file kexidatetableedit.h. |
|
Order of date sections.
Definition at line 60 of file kexidatetableedit.h. |
|
Date format used in dateToString().
Definition at line 68 of file kexidatetableedit.h. |
|
Used in stringToDate() to convert string back to QDate.
Definition at line 71 of file kexidatetableedit.h. |
The documentation for this class was generated from the following files: