Quark  0.1
ColorButton Class Reference

A tool button for selecting a color. More...

#include <ColorButton.h++>

Inheritance diagram for ColorButton:

Signals

void colorChanged (const QColor &color)
 Emitted when the selected color changes. More...
 

Public Member Functions

 ColorButton (QWidget *parent=NULL)
 Constructor. More...
 
virtual ~ColorButton ()
 Destructor. More...
 
QColor getColor () const
 Gets the currently selected color. More...
 
void setColor (const QColor &color)
 Sets the currently selected color. More...
 

Detailed Description

A tool button for selecting a color.

When clicked, a color chooser dialog is displayed to allow selection of the color. The button's icon is a color swatch representing the currently selected color.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ColorButton()

ColorButton ( QWidget *  parent = NULL)
explicit

Constructor.

◆ ~ColorButton()

virtual ~ColorButton ( )
virtual

Destructor.

Member Function Documentation

◆ colorChanged

void colorChanged ( const QColor &  color)
signal

Emitted when the selected color changes.

◆ getColor()

QColor getColor ( ) const
inline

Gets the currently selected color.

◆ setColor()

void setColor ( const QColor &  color)

Sets the currently selected color.


The documentation for this class was generated from the following file: