ColorButton Class Reference

#include <ColorButton.h>

List of all members.


Detailed Description

A button used for color selection.

This button contains two widgets: 1) A frame reflecting the current color 2) A button showing a color wheel to select the color

Signals

void clicked ()
 Signal clicked: This is emitted when the selection button is clicked.

Public Member Functions

QColor color () const
 Get the color of the display part.
 ColorButton (QWidget *parent=0)
 Constructor.
void setColor (const QColor &c)
 Set the color of the display part.
QSize sizeHint () const

Protected Member Functions

void init ()
 Initialize the widget (called from constructor).

Private Attributes

int btn_size
QFrame * display
QPushButton * selectButton


Constructor & Destructor Documentation

ColorButton::ColorButton ( QWidget *  parent = 0  ) 

Constructor.


Member Function Documentation

void ColorButton::clicked (  )  [signal]

Signal clicked: This is emitted when the selection button is clicked.

QColor ColorButton::color (  )  const

Get the color of the display part.

void ColorButton::init (  )  [protected]

Initialize the widget (called from constructor).

void ColorButton::setColor ( const QColor &  c  ) 

Set the color of the display part.

QSize ColorButton::sizeHint (  )  const


Member Data Documentation

int ColorButton::btn_size [private]

QFrame* ColorButton::display [private]

QPushButton* ColorButton::selectButton [private]


The documentation for this class was generated from the following files:
Generated on Mon Oct 15 06:11:43 2007 for QtiPlot by  doxygen 1.5.3