KexiDBTextWidgetInterface Class Reference
#include <kexidbtextwidgetinterface.h>
Inheritance diagram for KexiDBTextWidgetInterface:

Detailed Description
An interface providing common text editor's functionality.Widgets (e.g. KexiDBLineEdit, KexiDBTextEdit) implementing KexiFormDataItemInterface use this interface to customize painting and data handling.
Definition at line 33 of file kexidbtextwidgetinterface.h.
Public Member Functions | |
| KexiDBTextWidgetInterface () | |
| ~KexiDBTextWidgetInterface () | |
| void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo, QWidget *w) |
| Called from KexiFormDataItemInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo) implementation. | |
| void | paint (QFrame *w, QPainter *p, bool textIsEmpty, int alignment, bool hasFocus) |
| Called from paintEvent( QPaintEvent *pe ) method of the data aware widget. | |
| void | event (QEvent *e, QWidget *w, bool textIsEmpty) |
| Called from event( QEvent * e ) method of the data aware widget. | |
Protected Attributes | |
| KexiDisplayUtils::DisplayParameters * | m_autonumberDisplayParameters |
| parameters for displaying autonumber sign | |
Constructor & Destructor Documentation
|
|
Definition at line 27 of file kexidbtextwidgetinterface.cpp. |
|
|
Definition at line 32 of file kexidbtextwidgetinterface.cpp. References m_autonumberDisplayParameters. |
Member Function Documentation
|
||||||||||||||||
|
Called from event( QEvent * e ) method of the data aware widget.
Definition at line 65 of file kexidbtextwidgetinterface.cpp. References m_autonumberDisplayParameters. Referenced by KexiDBLineEdit::event(). |
|
||||||||||||||||||||||||
|
Called from paintEvent( QPaintEvent *pe ) method of the data aware widget.
Definition at line 46 of file kexidbtextwidgetinterface.cpp. References KexiUtils::blendedColors(), KexiFormDataItemInterface::columnInfo(), KexiDataItemInterface::cursorAtNewRow(), KexiDB::QueryColumnInfo::field, m_autonumberDisplayParameters, KexiDisplayUtils::paintAutonumberSign(), and KexiDisplayUtils::DisplayParameters::textColor. Referenced by KexiDBTextEdit::paintEvent(), KexiDBLineEdit::paintEvent(), and KexiDBLabel::paintEvent(). |
|
||||||||||||
|
Called from KexiFormDataItemInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo) implementation.
Definition at line 37 of file kexidbtextwidgetinterface.cpp. References KexiDB::QueryColumnInfo::field, KexiDisplayUtils::initDisplayForAutonumberSign(), and m_autonumberDisplayParameters. Referenced by KexiDBTextEdit::setColumnInfo(), KexiDBLineEdit::setColumnInfo(), and KexiDBLabel::setColumnInfo(). |
Member Data Documentation
|
|
parameters for displaying autonumber sign
Definition at line 50 of file kexidbtextwidgetinterface.h. Referenced by event(), paint(), setColumnInfo(), and ~KexiDBTextWidgetInterface(). |
The documentation for this class was generated from the following files:
