class KColorButton

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

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

Public Methods

Signals

Protected Methods


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 drawButtonLabel ( QPainter *p )
[protected virtual]

void dragEnterEvent ( QDragEnterEvent *)
[protected virtual]

For XDnd