.TH "KColorButton" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KColorButton \- This widget can be used to display or allow user selection of a colour. A pushbutton to display or allow user selection of a colour.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kcolorbutton.h>\fP
.PP
Inherits \fBQPushButton\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBchanged\fP (const  \fBQColor\fP &newColor)"
.br
.RI "\fIEmitted when the color of the widget is changed, either with \fBsetColor\fP() or via user selection. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKColorButton\fP (\fBQWidget\fP *parent, const  char *name=0L)"
.br
.RI "\fICreates a color button. \fP"
.ti -1c
.RI "\fBKColorButton\fP (const  \fBQColor\fP &c, \fBQWidget\fP *parent, const  char *name=0L)"
.br
.RI "\fICreates a color button with an initial color \fCc\fP. \fP"
.ti -1c
.RI "\fBKColorButton\fP (const  \fBQColor\fP &c, const  \fBQColor\fP &defaultColor, \fBQWidget\fP *parent, const  char *name=0L)"
.br
.RI "\fI\fBSince:\fP
.RS 4
3.1 
.RE
.PP
\fP"
.ti -1c
.RI "virtual \fB~KColorButton\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "\fBQColor\fP \fBcolor\fP () const "
.br
.RI "\fIReturns the currently chosen color. \fP"
.ti -1c
.RI "void \fBsetColor\fP (const  \fBQColor\fP &c)"
.br
.RI "\fISets the current color to \fCc\fP. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBchooseColor\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBdrawButtonLabel\fP (\fBQPainter\fP *p)"
.br
.ti -1c
.RI "virtual void \fBdragEnterEvent\fP (\fBQDragEnterEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBdropEvent\fP (\fBQDropEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmousePressEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBmouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This widget can be used to display or allow user selection of a colour. A pushbutton to display or allow user selection of a colour. 

\fBSee also:\fP
.RS 4
\fBKColorDialog\fP
.RE
.PP
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkcolorbutton.h\fP,v 1.6 2002/09/28 15:16:22 tjansen Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 34 of file kcolorbutton.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KColorButton::KColorButton (\fBQWidget\fP * parent, const char * name = 0L)"
.PP
Creates a color button. Definition at line 39 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked(), and KStdAccel::name().
.SS "KColorButton::KColorButton (const \fBQColor\fP & c, \fBQWidget\fP * parent, const char * name = 0L)"
.PP
Creates a color button with an initial color \fCc\fP. Definition at line 51 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked(), and KStdAccel::name().
.SS "KColorButton::KColorButton (const \fBQColor\fP & c, const \fBQColor\fP & defaultColor, \fBQWidget\fP * parent, const char * name = 0L)"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 64 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked(), and KStdAccel::name().
.SS "KColorButton::~\fBKColorButton\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 77 of file kcolorbutton.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBQColor\fP KColorButton::color () const\fC [inline]\fP"
.PP
Returns the currently chosen color. Definition at line 60 of file kcolorbutton.h.
.SS "void KColorButton::setColor (const \fBQColor\fP & c)"
.PP
Sets the current color to \fCc\fP. Definition at line 82 of file kcolorbutton.cpp.
.PP
References changed().
.SS "void KColorButton::changed (const \fBQColor\fP & newColor)\fC [signal]\fP"
.PP
Emitted when the color of the widget is changed, either with \fBsetColor\fP() or via user selection. Referenced by setColor().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
