Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

ColorSelector Class Reference
[Visual]

A widget for selecting a color. More...

#include <OpenMS/VISUAL/ColorSelector.h>

Inheritance diagram for ColorSelector:
QWidget

List of all members.

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

Remplemented Qt events

void paintEvent (QPaintEvent *e)
void mousePressEvent (QMouseEvent *e)

Protected Attributes

QColor color_

Detailed Description

A widget for selecting a color.

It represents a color (displayed as background color) and allows changing the color.

ColorSelector.png

The above example image shows four ColorSelector instances on the right side.


Constructor & Destructor Documentation

ColorSelector ( QWidget parent = 0  ) 

Constructor.

~ColorSelector (  ) 

Destructor.


Member Function Documentation

const QColor& getColor (  ) 

Returns the selected color.

void mousePressEvent ( QMouseEvent *  e  )  [protected]
void paintEvent ( QPaintEvent *  e  )  [protected]
void setColor ( const QColor &   ) 

Sets the selected color.

QSize sizeHint (  )  const

Qt size hint.


Member Data Documentation

QColor color_ [protected]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1