The palette background color is used to store the actual color.
Definition at line 125 of file tputils.h.
OSB_GUI::TpColor::TpColor | ( | QWidget * | parent, | |
const char * | name = "tpColor_" , |
|||
WFlags | fl = 0 | |||
) | [explicit] |
Constructor with Qt standard arguments.
OSB_GUI::TpColor::TpColor | ( | const QColor & | color, | |
QWidget * | parent, | |||
const char * | name = "tpColor_" , |
|||
WFlags | fl = 0 | |||
) |
Constructor with color and Qt standard arguments.
const QColor& OSB_GUI::TpColor::color | ( | ) | const |
Get the color.
void OSB_GUI::TpColor::keyPressEvent | ( | QKeyEvent * | e | ) | [private] |
Select the color by keyboard: Enter, Return or Space.
void OSB_GUI::TpColor::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [private] |
Select the color by mouse.
void OSB_GUI::TpColor::paintEvent | ( | QPaintEvent * | ) | [private] |
Paint the widget.
void OSB_GUI::TpColor::selectColor | ( | ) | [slot] |
Select the color.
void OSB_GUI::TpColor::setColor | ( | const QColor & | color | ) |
Set the color.
void OSB_GUI::TpColor::sigSelect | ( | ) | [signal] |
Request to select the color.