A widget for selecting a color. More...
#include <OpenMS/VISUAL/ColorSelector.h>
Public Member Functions | |
ColorSelector (QWidget *parent=0) | |
Constructor. More... | |
~ColorSelector () | |
Destructor. More... | |
const QColor & | getColor () |
Returns the selected color. More... | |
void | setColor (const QColor &) |
Sets the selected color. More... | |
QSize | sizeHint () const |
Qt size hint. More... | |
Protected Member Functions | |
Reimplemented Qt events | |
void | paintEvent (QPaintEvent *e) |
void | mousePressEvent (QMouseEvent *e) |
Protected Attributes | |
QColor | color_ |
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 = 0 | ) |
Constructor.
~ColorSelector | ( | ) |
Destructor.
const QColor& getColor | ( | ) |
Returns the selected color.
|
protected |
|
protected |
void setColor | ( | const QColor & | ) |
Sets the selected color.
QSize sizeHint | ( | ) | const |
Qt size hint.
|
protected |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:07 using doxygen 1.8.13 |