class KColorButton

# class KColorButton | A pushbutton to display or allow user selection of a colour. More...
Definition | `#include <kcolorbutton.h>`
Inherits | QPushButton (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KColorButton ( QWidget *parent, const char *name = 0L )
- KColorButton ( const QColor &c, QWidget *parent, const char *name = 0L )
- KColorButton ( const QColor &c, const QColor &defaultColor, QWidget *parent, const char *name=0L )
- virtual ~KColorButton ()
- QColor color () const
- void setColor ( const QColor &c )

#### Signals

- void changed ( const QColor &newColor )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Slots

- void chooseColor ()

## Detailed Description

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

See also: KColorDialog

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

Creates a color button.

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

Creates a color button with an initial color `c`.

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

~KColorButton () | ### ~KColorButton

[virtual]

Destructor.

QColor color () | ### color

[const]

Returns the currently chosen color.

void setColor ( const QColor &c ) | ### setColor

Sets the current color to `c`.

void changed ( const QColor &newColor ) | ### changed

[signal]

Emitted when the color of the widget is changed, either with setColor() or via user selection.

void chooseColor () | ### chooseColor

[protected slots slot]

void drawButtonLabel ( QPainter *p ) | ### drawButtonLabel

[protected virtual]

void dragEnterEvent ( QDragEnterEvent *) | ### dragEnterEvent

[protected virtual]

void dropEvent ( QDropEvent *) | ### dropEvent

[protected virtual]

void mousePressEvent ( QMouseEvent *e ) | ### mousePressEvent

[protected virtual]

void mouseMoveEvent ( QMouseEvent *e) | ### mouseMoveEvent

[protected virtual]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Version: $Id: kcolorbutton.h,v 1.6 2002/09/28 15:16:22 tjansen Exp $
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.