class KColorButton

A pushbutton to display or allow user selection of a colour. More...

Definition#include <kcolorbtn.h>
InheritsQPushButton (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods

Protected Slots


Detailed Description

This widget can be used to display or allow user selection of a colour.

 KColorButton ( QWidget *parent, const char *name = 0L )

Constructor. Create a KColorButton.

 KColorButton ( const QColor &c, QWidget *parent, const char *name = 0L )

Constructor. Create a KColorButton.

Parameters:
cThe initial colour of the button.

KColorButton ()

[virtual]

Destructor.

const QColor  color ()

[const]

The current colour.

Returns: The current colour.

void  setColor ( const QColor &c )

Set the current colour.

Parameters:
cThe colour to set.

void  changed ( const QColor &newColor )

[signal]

This signal will be emitted when the colour of the widget is changed, either with setColor or via user selection.

void  slotClicked ()

[protected slot]

void  drawButtonLabel ( QPainter *p )

[protected virtual]

Reimplemented from QPushButton