ColorButton Class Reference

#include <ColorButton.h>

List of all members.


Detailed Description

A modified QPushButton used for color selection.

The QPushButton displays its current color. When clicked it pops-up a QColorDialog allowing to select the color to be displayed.


Signals

void colorChanged ()

Public Member Functions

QColor color ()
 Get the current color.
 ColorButton (QWidget *parent=0)
 Constructor.
void setColor (const QColor &c)
 Set the current color to be displayed.

Private Slots

void pickColor ()

Private Member Functions

void updateColor ()

Private Attributes

QColor d_color
 Current color.


Constructor & Destructor Documentation

ColorButton::ColorButton QWidget *  parent = 0  ) 
 

Constructor.

Parameters:
parent parent widget (only affects placement of the widget)


Member Function Documentation

QColor ColorButton::color  )  [inline]
 

Get the current color.

void ColorButton::colorChanged  )  [signal]
 

void ColorButton::pickColor  )  [private, slot]
 

void ColorButton::setColor const QColor &  c  ) 
 

Set the current color to be displayed.

void ColorButton::updateColor  )  [private]
 


Member Data Documentation

QColor ColorButton::d_color [private]
 

Current color.


The documentation for this class was generated from the following files:
Generated on Tue Nov 4 10:49:53 2008 for Qti by  doxygen 1.4.6