KColorButton Class Reference

[kdeui Index] [kdeui Hierarchy] [Headers]


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

#include <kcolorbtn.h>

Inherits: QPushButton (qt)

Public Members

Protected Members

Protected Slots

Signals

Private Members


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 ) [public]

Constructor. Create a KColorButton.

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

Constructor. Create a KColorButton.

Parameters:
c The initial colour of the button.

~KColorButton() [public virtual]

Destructor.

const QColor color() const [public]

The current colour.

Returns:
The current colour.

void setColor( const QColor &c ) [public]

Set the current colour.

Parameters:
c The 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.


  • Version: $Id: kcolorbtn.h,v 1.5 1998/09/01 20:21:40 kulow Exp $
  • Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:27 CEST 1999
Kdoc