kexi
KexiTableViewHeader Class Reference
#include <kexitableviewheader.h>
Detailed Description
A table view header with additional actions.Displays field description (Field::description()) text as tool tip, if available. Displays tool tips if a pointed section is not wide enough to fit its label text.
- Todo:
- react on indexChange ( int section, int fromIndex, int toIndex ) signal
Definition at line 33 of file kexitableviewheader.h.
Public Member Functions | |
KexiTableViewHeader (QWidget *parent=0, const char *name=0) | |
virtual | ~KexiTableViewHeader () |
int | addLabel (const QString &s, int size=-1) |
int | addLabel (const QIconSet &iconset, const QString &s, int size=-1) |
void | removeLabel (int section) |
void | setToolTip (int section, const QString &toolTip) |
virtual bool | eventFilter (QObject *watched, QEvent *e) |
void | setSelectedSection (int section) |
int | selectedSection () const |
QColor | selectionBackgroundColor () const |
void | setSelectionBackgroundColor (const QColor &color) |
Protected Slots | |
void | slotSizeChange (int section, int oldSize, int newSize) |
Protected Member Functions | |
virtual void | paintSection (QPainter *p, int index, const QRect &fr) |
virtual void | styleChange (QStyle &oldStyle) |
Protected Attributes | |
int | m_lastToolTipSection |
QRect | m_toolTipRect |
QStringList | m_toolTips |
QColor | m_selectionBackgroundColor |
int | m_selectedSection |
bool | m_styleChangeEnabled: 1 |
Member Function Documentation
void KexiTableViewHeader::setToolTip | ( | int | section, | |
const QString & | toolTip | |||
) |
Sets toolTip for section.
Definition at line 113 of file kexitableviewheader.cpp.
The documentation for this class was generated from the following files: