KexiDBDateTimeEdit Class Reference
#include <kexidbdatetimeedit.h>
Inheritance diagram for KexiDBDateTimeEdit:

Detailed Description
A db-aware datetime editor.
Definition at line 32 of file kexidbdatetimeedit.h.
Public Types | |
| enum | Order { DMY, MDY, YMD, YDM } |
Public Slots | |
| void | setDataSource (const QString &ds) |
| Sets the name of the data source for this widget. | |
| void | setDataSourceMimeType (const QCString &ds) |
| void | setDateTime (const QDateTime &dt) |
| virtual void | setReadOnly (bool set) |
Signals | |
| void | dateTimeChanged () |
Public Member Functions | |
| KexiDBDateTimeEdit (const QDateTime &datetime, QWidget *parent, const char *name=0) | |
| virtual | ~KexiDBDateTimeEdit () |
| QString | dataSource () const |
| QCString | dataSourceMimeType () const |
| virtual QVariant | value () |
| virtual void | setInvalidState (const QString &displayText) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| clears item's data, so the data will contain NULL data | |
| virtual void | setEnabled (bool enabled) |
| QDateTime | dateTime () const |
Protected Slots | |
| void | slotValueChanged () |
| void | slotShowDatePicker () |
| void | acceptDate () |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
| QDateTime | dateTime |
| bool | readOnly |
Member Enumeration Documentation
|
|
Definition at line 42 of file kexidbdatetimeedit.h. |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 30 of file kexidbdatetimeedit.cpp. References acceptDate(), dateTimeChanged(), slotShowDatePicker(), slotValueChanged(), and KexiDataItemInterface::valueChanged(). |
|
|
Definition at line 83 of file kexidbdatetimeedit.cpp. |
Member Function Documentation
|
|
Definition at line 191 of file kexidbdatetimeedit.cpp. Referenced by eventFilter(), and KexiDBDateTimeEdit(). |
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 166 of file kexidbdatetimeedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 156 of file kexidbdatetimeedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 147 of file kexidbdatetimeedit.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 47 of file kexidbdatetimeedit.h. References KexiFormDataItemInterface::dataSource(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 48 of file kexidbdatetimeedit.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
|
|
|
Referenced by KexiDBDateTimeEdit(). |
|
||||||||||||
|
Definition at line 198 of file kexidbdatetimeedit.cpp. References acceptDate(). |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 129 of file kexidbdatetimeedit.cpp. |
|
|
Sets the name of the data source for this widget. Data source usually means here a table or query or field name name. Reimplemented from KexiFormDataItemInterface. Definition at line 81 of file kexidbdatetimeedit.h. References KexiFormDataItemInterface::setDataSource(). |
|
|
Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".
Reimplemented from KexiFormDataItemInterface. Definition at line 82 of file kexidbdatetimeedit.h. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
|
Definition at line 237 of file kexidbdatetimeedit.cpp. |
|
|
Definition at line 98 of file kexidbdatetimeedit.cpp. Referenced by setInvalidState(). |
|
|
Implements KexiFormDataItemInterface. Definition at line 87 of file kexidbdatetimeedit.cpp. References setEnabled(), and setReadOnly(). |
|
|
Changes 'read only' flag, for this widget. Typically this flag can be passed to a widget itself, e.g. KLineEdit::setReadOnly(bool). Implements KexiFormDataItemInterface. Definition at line 136 of file kexidbdatetimeedit.cpp. Referenced by setInvalidState(). |
|
||||||||||||
|
Initializes this editor with add value, which should be somewhat added to the current value (already storted in m_origValue). If removeOld is true, a value should be set to add, otherwise -it should be set to current m_origValue + add, if possible. Implement this. Implements KexiDataItemInterface. Definition at line 106 of file kexidbdatetimeedit.cpp. References KexiDataItemInterface::m_origValue. |
|
|
Definition at line 180 of file kexidbdatetimeedit.cpp. Referenced by KexiDBDateTimeEdit(). |
|
|
Definition at line 174 of file kexidbdatetimeedit.cpp. Referenced by KexiDBDateTimeEdit(). |
|
|
Implements KexiDataItemInterface. Definition at line 113 of file kexidbdatetimeedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 124 of file kexidbdatetimeedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 118 of file kexidbdatetimeedit.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 142 of file kexidbdatetimeedit.cpp. |
Property Documentation
|
|
Definition at line 35 of file kexidbdatetimeedit.h. |
|
|
Definition at line 36 of file kexidbdatetimeedit.h. |
|
|
Definition at line 38 of file kexidbdatetimeedit.h. |
|
|
Definition at line 39 of file kexidbdatetimeedit.h. |
The documentation for this class was generated from the following files:
