class KColorButton

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

Definition#include <kcolorbutton.h>
InheritsQPushButton (qt) [public ]
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.

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

~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]