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 42 of file kexidblabel.h.
Public Slots | |
| void | setDataSource (const QString &ds) |
| Sets the datasource to 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 |
| always true | |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| always false | |
| virtual bool | cursorAtEnd () |
| always false | |
| virtual void | clear () |
| clears item's data, so the data will contain NULL data | |
| virtual bool | setProperty (const char *name, const QVariant &value) |
| used to catch setIndent(), etc. | |
| virtual const QColor & | frameColor () const |
Protected Slots | |
| virtual void | setReadOnly (bool readOnly) |
| empty | |
| 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) |
| Sets value value for a widget. | |
| 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 *) |
| Reimplemented to paint using real frame color instead of froeground. | |
| void | updatePixmapLater () |
Protected Attributes | |
| Private * | d |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
| bool | shadowEnabled |
| QColor | frameColor |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 398 of file kexidblabel.cpp. References init(). |
|
||||||||||||||||||||
|
Definition at line 407 of file kexidblabel.cpp. |
|
|
Definition at line 417 of file kexidblabel.cpp. References d. |
Member Function Documentation
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 549 of file kexidblabel.cpp. References setText(). |
|
|
always false
Implements KexiDataItemInterface. Definition at line 544 of file kexidblabel.cpp. |
|
|
always false
Implements KexiDataItemInterface. Definition at line 539 of file kexidblabel.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 57 of file kexidblabel.h. References KexiFormDataItemInterface::dataSource(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 58 of file kexidblabel.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
Reimplemented to paint using real frame color instead of froeground. Also allows to paint more types of frame. |
|
|
Definition at line 601 of file kexidblabel.cpp. References d. |
|
|
Definition at line 590 of file kexidblabel.cpp. References d. |
|
|
Definition at line 623 of file kexidblabel.cpp. References d. |
|
|
|
|
|
Definition at line 422 of file kexidblabel.cpp. References d, and KexiDataItemInterface::m_hasFocusableWidget. Referenced by KexiDBLabel(). |
|
|
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. References d, KexiDBTextWidgetInterface::paint(), and updatePixmapLater(). |
|
|
Definition at line 607 of file kexidblabel.cpp. References d. |
|
|
Definition at line 583 of file kexidblabel.cpp. References d. |
|
|
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 569 of file kexidblabel.cpp. References KexiDBTextWidgetInterface::setColumnInfo(), and KexiFormDataItemInterface::setColumnInfo(). |
|
|
Sets the datasource to ds.
Reimplemented from KexiFormDataItemInterface. Definition at line 92 of file kexidblabel.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 94 of file kexidblabel.h. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
|
|
|
|
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. References setText(). |
|
|
|
|
||||||||||||
|
used to catch setIndent(), etc.
Definition at line 554 of file kexidblabel.cpp. References d, and updatePixmap(). |
|
|
empty
Implements KexiFormDataItemInterface. Definition at line 529 of file kexidblabel.cpp. |
|
|
Enable/Disable the shadow effect. KexiDBLabel acts just like a normal QLabel when shadow is disabled. Definition at line 575 of file kexidblabel.cpp. References d. |
|
|
Definition at line 634 of file kexidblabel.cpp. References d, and KexiDataItemInterface::valueChanged(). Referenced by clear(), KexiDBLabel(), setInvalidState(), and setValueInternal(). |
|
||||||||||||
|
Sets value value for a widget.
Implements KexiDataItemInterface. Definition at line 498 of file kexidblabel.cpp. References KexiDataItemInterface::m_origValue, and setText(). |
|
|
|
|
|
Definition at line 629 of file kexidblabel.cpp. References d. |
|
|
Definition at line 596 of file kexidblabel.cpp. References d. |
|
|
Whatever has changed in KexiDBLabel, every parameter is set to our private-label. Just in case... Definition at line 447 of file kexidblabel.cpp. Referenced by setProperty(), and updatePixmapLater(). |
|
|
Definition at line 432 of file kexidblabel.cpp. References d, and updatePixmap(). Referenced by paintEvent(). |
|
|
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 534 of file kexidblabel.cpp. |
Member Data Documentation
|
|
Definition at line 136 of file kexidblabel.h. Referenced by enabledChange(), fontChange(), frameChanged(), init(), paintEvent(), paletteChange(), resizeEvent(), setProperty(), setShadowEnabled(), setText(), showEvent(), styleChange(), updatePixmap(), updatePixmapLater(), and ~KexiDBLabel(). |
Property Documentation
|
|
Definition at line 44 of file kexidblabel.h. |
|
|
Definition at line 45 of file kexidblabel.h. |
|
|
Definition at line 50 of file kexidblabel.h. |
|
|
Definition at line 46 of file kexidblabel.h. |
The documentation for this class was generated from the following files:
