SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Public Slots | |
virtual void | setChosenColor (const QColor &) |
set the color | |
virtual void | chooseColor () |
show a dialog to choose the color | |
Signals | |
void | chosenColorChanged (const QColor &) |
signal color changed | |
void | validColorChosen (const QColor &) |
signal color selected | |
Public Member Functions | |
qtColorButton (QWidget *p) | |
constructor requires a QComboBox | |
QColor | chosenColor () const |
get the color | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *rEvent) override |
overridden to resize the color icon. | |
QIcon | renderColorSwatch (const QColor &) |
renders an icon for the color. | |
Protected Attributes | |
QColor | Color |
Properties | |
QColor | chosenColor |