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


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: KColorButton.html.in,v 1.1.1.1 2000/02/09 22:25:28 tasin Exp $
  • Documentation generated by tasin@cd1 on Die Nov 30 17:31:44 CET 1999
Kdoc