OpenMS
2.7.0
|
A widget for selecting a color. More...
#include <OpenMS/VISUAL/ColorSelector.h>
Public Member Functions | |
ColorSelector (QWidget *parent=nullptr) | |
Constructor. More... | |
~ColorSelector () override | |
Destructor. More... | |
const QColor & | getColor () |
Returns the selected color. More... | |
void | setColor (const QColor &) |
Sets the selected color. More... | |
QSize | sizeHint () const override |
Qt size hint. More... | |
Reimplemented Qt events | |
QColor | color_ |
void | paintEvent (QPaintEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
A widget for selecting a color.
It represents a color (displayed as background color) and allows changing the color.
The above example image shows four ColorSelector instances on the right side.
ColorSelector | ( | QWidget * | parent = nullptr | ) |
Constructor.
|
override |
Destructor.
const QColor& getColor | ( | ) |
Returns the selected color.
|
overrideprotected |
|
overrideprotected |
void setColor | ( | const QColor & | ) |
Sets the selected color.
|
override |
Qt size hint.
|
protected |