Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KColorButton Class Reference

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

#include <kcolorbutton.h>

List of all members.

Signals

void changed (const QColor &newColor)

Public Methods

 KColorButton (QWidget *parent, const char *name=0L)
 KColorButton (const QColor &c, QWidget *parent, const char *name=0L)
 KColorButton (const QColor &c, const QColor &defaultColor, QWidget *parent, const char *name=0L)
 
Since:
3.1


virtual ~KColorButton ()
QColor color () const
void setColor (const QColor &c)

Protected Methods

virtual void drawButtonLabel (QPainter *p)
virtual void dragEnterEvent (QDragEnterEvent *)
virtual void dropEvent (QDropEvent *)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)


Detailed Description

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

This widget can be used to display or allow user selection of a colour.

See also:
KColorDialog
Version:
Id:
kcolorbutton.h,v 1.6 2002/09/28 15:16:22 tjansen Exp

Definition at line 34 of file kcolorbutton.h.


Constructor & Destructor Documentation

KColorButton::KColorButton QWidget *    parent,
const char *    name = 0L
 

Creates a color button.

KColorButton::KColorButton const QColor &    c,
QWidget *    parent,
const char *    name = 0L
 

Creates a color button with an initial color c.

virtual KColorButton::~KColorButton   [virtual]
 

Destructor.


Member Function Documentation

void KColorButton::changed const QColor &    newColor [signal]
 

Emitted when the color of the widget is changed, either with setColor() or via user selection.

QColor KColorButton::color   const [inline]
 

Returns the currently chosen color.

Definition at line 60 of file kcolorbutton.h.

virtual void KColorButton::dragEnterEvent QDragEnterEvent *    [protected, virtual]
 

@reimplemented

virtual void KColorButton::drawButtonLabel QPainter *    p [protected, virtual]
 

@reimplemented

virtual void KColorButton::dropEvent QDropEvent *    [protected, virtual]
 

@reimplemented

virtual void KColorButton::mouseMoveEvent QMouseEvent *    e [protected, virtual]
 

@reimplemented

virtual void KColorButton::mousePressEvent QMouseEvent *    e [protected, virtual]
 

@reimplemented

void KColorButton::setColor const QColor &    c
 

Sets the current color to c.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:06 2003 for kdelibs by doxygen1.2.18