#include <OpenMS/VISUAL/ColorSelector.h>
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.
Public Member Functions | |
ColorSelector (QWidget *parent=0) | |
Constructor. | |
~ColorSelector () | |
Destructor. | |
const QColor & | getColor () |
Returns the selected color. | |
void | setColor (const QColor &) |
Sets the selected color. | |
QSize | sizeHint () const |
Qt size hint. | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *e) |
void | mousePressEvent (QMouseEvent *e) |
Protected Attributes | |
QColor | color_ |
ColorSelector | ( | QWidget * | parent = 0 |
) |
Constructor.
~ColorSelector | ( | ) |
Destructor.
const QColor& getColor | ( | ) |
Returns the selected color.
void setColor | ( | const QColor & | ) |
Sets the selected color.
QSize sizeHint | ( | ) | const |
Qt size hint.
void paintEvent | ( | QPaintEvent * | e | ) | [protected] |
void mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
QColor color_ [protected] |
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |