Simulation Modeling Tool Kit
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
smtk::attribute::qtColorButton Class Reference
Inheritance diagram for smtk::attribute::qtColorButton:
Collaboration diagram for smtk::attribute::qtColorButton:

Public Slots

virtual void setChosenColor (const QColor &)
 set the color
virtual void chooseColor ()
 show a dialog to choose the color


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


QColor chosenColor

The documentation for this class was generated from the following files: