Public Member Functions | |
| ZeDataTable (QWidget *parent=0, const char *name=0) | |
| QColor | getOddRowColor () const |
| void | setOddRowColor (QColor) |
| QColor | getEvenRowColor () const |
| void | setEvenRowColor (QColor) |
| QColor | getHoverColor () const |
| void | setHoverColor (QColor) |
| QColor | getHighlightColor () const |
| void | setHighlightColor (QColor) |
Properties | |
| QColor | oddRowColor [] |
| QColor | evenRowColor [] |
| QColor | hoverColor [] |
| QColor | highlightColor [] |
Private Member Functions | |
| void | paintCell (QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg) |
| void | paintFocus (QPainter *p, const QRect &cr) |
| void | contentsMouseMoveEvent (QMouseEvent *e) |
Private Attributes | |
| QColorGroup * | cg1 |
| QColorGroup * | cg2 |
| QColorGroup * | cgOver |
| int | isOverRow |
| QRect * | redrawRect |
| ZeDataTable::ZeDataTable | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
standard QTable c'tor sets QColor values to reasonable defaults
| QColor ZeDataTable::getOddRowColor | ( | ) | const |
Get the oddRowColor.
Escpecially needed to export for use as a plugin.
| void ZeDataTable::setOddRowColor | ( | QColor | c1 | ) |
Set the oddRowColor.
Escpecially needed to export for use as a plugin.
| QColor ZeDataTable::getEvenRowColor | ( | ) | const |
Get the evenRowColor.
Escpecially needed to export for use as a plugin.
| void ZeDataTable::setEvenRowColor | ( | QColor | c2 | ) |
Set the evenRowColor.
Escpecially needed to export for use as a plugin.
| QColor ZeDataTable::getHoverColor | ( | ) | const |
Get the hoverColor.
Escpecially needed to export for use as a plugin.
| void ZeDataTable::setHoverColor | ( | QColor | cO | ) |
Set the hoverColor.
Escpecially needed to export for use as a plugin.
| QColor ZeDataTable::getHighlightColor | ( | ) | const |
Get the highlightColor.
Escpecially needed to export for use as a plugin.
| void ZeDataTable::setHighlightColor | ( | QColor | cH | ) |
Set the highlightColor.
Escpecially needed to export for use as a plugin.
| void ZeDataTable::paintCell | ( | QPainter * | p, | |
| int | row, | |||
| int | col, | |||
| const QRect & | cr, | |||
| bool | selected, | |||
| const QColorGroup & | cg | |||
| ) | [private] |
| void ZeDataTable::paintFocus | ( | QPainter * | p, | |
| const QRect & | cr | |||
| ) | [private] |
| void ZeDataTable::contentsMouseMoveEvent | ( | QMouseEvent * | e | ) | [private] |
handles highlighting of active row improved thanks to Volker Hilsheimer from Trolltech
QColorGroup* ZeDataTable::cg1 [private] |
QColorGroup * ZeDataTable::cg2 [private] |
QColorGroup * ZeDataTable::cgOver [private] |
int ZeDataTable::isOverRow [private] |
QRect* ZeDataTable::redrawRect [private] |
QColor ZeDataTable::oddRowColor [read, write] |
QColor ZeDataTable::evenRowColor [read, write] |
QColor ZeDataTable::hoverColor [read, write] |
QColor ZeDataTable::highlightColor [read, write] |
1.5.1