Inherits QWidget.
Public Slots | |
void | setActive (bool) |
void | setBgColor (const QColor &) |
Sets the background colour. | |
void | setFgColor (const QColor &) |
Sets the foreground colour. | |
void | switchColors () |
Swaps foreground and background colours. | |
Signals | |
void | bgChanged (const QColor &) |
background colour changed | |
void | bgClicked () |
background button was clicked | |
void | bgPressed () |
background button was pressed | |
void | fgChanged (const QColor &) |
foreground colour changed | |
void | fgClicked () |
foreground button was clicked | |
void | fgPressed () |
foreground button was pressed | |
Public Member Functions | |
bool | isActive () const |
| |
QSize | minimumSizeHint () const |
QwwTwoColorIndicator (QWidget *parent=0) | |
QSize | sizeHint () const |
~QwwTwoColorIndicator () | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | paintEvent (QPaintEvent *) |
virtual void | paintSection (QPainter *p, const QRect &rect, const QColor &color) |
Properties | |
bool | active [] |
whether mouse click enables colour select | |
QColor | bgColor [] |
background colour | |
QColor | fgColor [] |
foreground colour |
Definition at line 21 of file qwwtwocolorindicator.h.
QwwTwoColorIndicator::QwwTwoColorIndicator | ( | QWidget * | parent = 0 |
) |
void QwwTwoColorIndicator::setActive | ( | bool | a | ) | [slot] |
void QwwTwoColorIndicator::setBgColor | ( | const QColor & | b | ) | [slot] |
Sets the background colour.
b | colour to set |
Definition at line 142 of file qwwtwocolorindicator.cpp.
void QwwTwoColorIndicator::setFgColor | ( | const QColor & | f | ) | [slot] |
Sets the foreground colour.
f | colour to set |
Definition at line 154 of file qwwtwocolorindicator.cpp.
const QColor & QwwTwoColorIndicator::bgColor [read, write] |
background colour
Definition at line 25 of file qwwtwocolorindicator.h.
const QColor & QwwTwoColorIndicator::fgColor [read, write] |
foreground colour
Definition at line 24 of file qwwtwocolorindicator.h.