Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

ColorSelector Class Reference
[Visual]

#include <OpenMS/VISUAL/ColorSelector.h>

Inheritance diagram for ColorSelector:

QWidget

List of all members.


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.

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_


Constructor & Destructor Documentation

ColorSelector ( QWidget parent = 0  ) 

Constructor.

~ColorSelector (  ) 

Destructor.


Member Function Documentation

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]


Member Data Documentation

QColor color_ [protected]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1