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 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:

KColorButton ()

[virtual]

Destructor.

QColor  color ()

[const]

The current colour.

Returns: The current colour.

void  setColor ( const QColor &c )

Set the current colour.

Parameters:

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  chooseColor ()

[protected slot]

void  drawButtonLabel ( QPainter *p )

[protected virtual]

void  dragEnterEvent ( QDragEnterEvent *)

[protected virtual]

void  dropEvent ( QDropEvent *)

[protected virtual]

void  mousePressEvent ( QMouseEvent *e )

[protected virtual]

void  mouseMoveEvent ( QMouseEvent *e)

[protected virtual]