KexiTextFormatter Class Reference
#include <kexitextformatter.h>
Detailed Description
Text formatter used to format QVariant values to text for displaying and back to QVariant.Used by KexiInputTableEdit, KexiDateTableEdit, KexiTimeTableEdit, KexiDateTimeTableEdit, KexiDBLineEdit (forms), etc.
Definition at line 28 of file kexitextformatter.h.
Public Member Functions | |
| KexiTextFormatter () | |
| ~KexiTextFormatter () | |
| void | setField (KexiDB::Field *field) |
| Assigns field to the formatter. This affects its behaviour. | |
| QString | valueToText (const QVariant &value, const QString &add) const |
| QVariant | textToValue (const QString &text) const |
| bool | valueIsEmpty (const QString &text) const |
| bool | valueIsValid (const QString &text) const |
| QString | inputMask () const |
Public Attributes | |
| Private * | d |
Constructor & Destructor Documentation
|
|
Definition at line 45 of file kexitextformatter.cpp. |
|
|
Definition at line 50 of file kexitextformatter.cpp. References d. |
Member Function Documentation
|
|
Definition at line 221 of file kexitextformatter.cpp. References d, KexiDB::Field::Date, KexiDB::Field::DateTime, dateTimeInputMask(), and KexiDB::Field::Time. Referenced by KexiDBLineEdit::setColumnInfo(). |
|
|
Assigns field to the formatter. This affects its behaviour.
Definition at line 55 of file kexitextformatter.cpp. References d, KexiDB::Field::Date, KexiDB::Field::DateTime, and KexiDB::Field::Time. Referenced by KexiInputTableEdit::init(), and KexiDBLineEdit::setColumnInfo(). |
|
|
Definition at line 141 of file kexitextformatter.cpp. References KexiDB::Field::BigInteger, KexiDB::Field::Boolean, KexiDB::Field::Byte, d, KexiDB::Field::Date, KexiDB::Field::DateTime, KexiDB::Field::Double, KexiDB::Field::Float, KexiDB::Field::Integer, KexiDB::Field::LongText, KexiDB::Field::ShortInteger, stringToDateTime(), KexiDB::Field::Text, and KexiDB::Field::Time. Referenced by KexiDBLineEdit::value(). |
|
|
Definition at line 182 of file kexitextformatter.cpp. References d, KexiDB::Field::Date, dateTimeIsEmpty(), and KexiDB::Field::Time. Referenced by KexiDBLineEdit::valueIsEmpty(), and valueIsValid(). |
|
|
Definition at line 201 of file kexitextformatter.cpp. References d, KexiDB::Field::Date, KexiDB::Field::DateTime, dateTimeIsValid(), KexiDB::Field::Time, and valueIsEmpty(). Referenced by KexiDBLineEdit::valueIsValid(). |
|
||||||||||||
|
Definition at line 74 of file kexitextformatter.cpp. References d, and KexiDB::formatNumberForVisibleDecimalPlaces(). Referenced by KexiInputTableEdit::handleCopyAction(), KexiInputTableEdit::setValueInternal(), KexiDBLineEdit::setValueInternal(), and KexiInputTableEdit::showToolTipIfNeeded(). |
Member Data Documentation
|
|
Definition at line 60 of file kexitextformatter.h. Referenced by inputMask(), setField(), textToValue(), valueIsEmpty(), valueIsValid(), valueToText(), and ~KexiTextFormatter(). |
The documentation for this class was generated from the following files:
