kexi
KexiDBLabel Class Reference
#include <kexidblabel.h>
Inheritance diagram for KexiDBLabel:

Detailed Description
An extended, data-aware, read-only text label.It's text may have a drop-shadow.
- Author:
- Christian Nitschkowski, Jaroslaw Staniek
Definition at line 43 of file kexidblabel.h.
Public Slots | |
void | setDataSource (const QString &ds) |
void | setDataSourceMimeType (const QCString &ds) |
virtual void | setText (const QString &text) |
void | setShadowEnabled (bool state) |
virtual void | setPalette (const QPalette &pal) |
virtual void | setFrameColor (const QColor &color) |
Public Member Functions | |
KexiDBLabel (QWidget *parent, const char *name=0, WFlags f=0) | |
KexiDBLabel (const QString &text, QWidget *parent, const char *name=0, WFlags f=0) | |
virtual | ~KexiDBLabel () |
QString | dataSource () const |
QCString | dataSourceMimeType () const |
virtual QVariant | value () |
bool | shadowEnabled () const |
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 () |
virtual bool | setProperty (const char *name, const QVariant &value) |
virtual const QColor & | frameColor () const |
Protected Slots | |
void | updatePixmap () |
Protected Member Functions | |
void | init () |
virtual void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual void | setValueInternal (const QVariant &add, bool removeOld) |
virtual void | fontChange (const QFont &font) |
virtual void | styleChange (QStyle &style) |
virtual void | enabledChange (bool enabled) |
virtual void | paletteChange (const QPalette &oldPal) |
virtual void | frameChanged () |
virtual void | showEvent (QShowEvent *e) |
virtual void | drawFrame (QPainter *) |
void | updatePixmapLater () |
Protected Attributes | |
Private * | d |
Properties | |
QString | dataSource |
QCString | dataSourceMimeType |
bool | shadowEnabled |
QColor | frameColor |
Member Function Documentation
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 544 of file kexidblabel.cpp. |
|
always false
Implements KexiDataItemInterface. Definition at line 539 of file kexidblabel.cpp. |
|
always false
Implements KexiDataItemInterface. Definition at line 534 of file kexidblabel.cpp. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 58 of file kexidblabel.h. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 59 of file kexidblabel.h. |
|
Reimplemented to paint using real frame color instead of froeground. Also allows to paint more types of frame. |
|
always true
Reimplemented from KexiDataItemInterface. Definition at line 524 of file kexidblabel.cpp. |
|
If required, update the pixmap-cache. If the part that should be redrawn intersects with our shadow, redraw the shadow where it intersects with e->rect(). Have to move the clipping rect around a bit because the shadow has to be drawn using an offset relative to the widgets border. Definition at line 467 of file kexidblabel.cpp. |
|
Used internally to set database column information. Reimplement if you need to do additional actions, e.g. set data validator based on field type. Don't forget about calling superclass implementation. Reimplemented from KexiFormDataItemInterface. Definition at line 564 of file kexidblabel.cpp. |
|
Sets the datasource to ds.
Reimplemented from KexiFormDataItemInterface. Definition at line 93 of file kexidblabel.h. |
|
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 95 of file kexidblabel.h. |
|
Sets 'invalid' state, e.g. a text editor widget should display text displayText and become read only to prevent entering data, because updating at the database backend is not available. displayText is usually set to something i18n'd like "#NAME?". Note: that even widgets that usualy do not display texts (e.g. pixmaps) should display displayText too. Implements KexiFormDataItemInterface. Definition at line 509 of file kexidblabel.cpp. |
|
used to catch setIndent(), etc.
Definition at line 549 of file kexidblabel.cpp. |
|
Enable/Disable the shadow effect. KexiDBLabel acts just like a normal QLabel when shadow is disabled. Definition at line 570 of file kexidblabel.cpp. |
|
Sets value value for a widget.
Implements KexiDataItemInterface. Definition at line 498 of file kexidblabel.cpp. |
|
Whatever has changed in KexiDBLabel, every parameter is set to our private-label. Just in case... Definition at line 447 of file kexidblabel.cpp. |
|
Implements KexiDataItemInterface. Definition at line 505 of file kexidblabel.cpp. |
|
Implements KexiDataItemInterface. Definition at line 519 of file kexidblabel.cpp. |
|
Implements KexiDataItemInterface. Definition at line 514 of file kexidblabel.cpp. |
|
Convenience function: casts this item to a QWidget. Can return 0 if the item is not a QWidget-derived object. Reimplemented from KexiFormDataItemInterface. Definition at line 529 of file kexidblabel.cpp. |
The documentation for this class was generated from the following files: