.TH "KColorButton" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KColorButton \- A pushbutton to display or allow user selection of a color.  

.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
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKColorButton\fP (\fBQWidget\fP *parent, const char *name=0L)"
.br
.ti -1c
.RI "\fBKColorButton\fP (const \fBQColor\fP &c, \fBQWidget\fP *parent, const char *name=0L)"
.br
.ti -1c
.RI "\fBKColorButton\fP (const \fBQColor\fP &c, const \fBQColor\fP &defaultColor, \fBQWidget\fP *parent, const char *name=0L)"
.br
.ti -1c
.RI "\fBQColor\fP \fBcolor\fP () const "
.br
.ti -1c
.RI "void \fBsetColor\fP (const \fBQColor\fP &c)"
.br
.ti -1c
.RI "\fBQColor\fP \fBdefaultColor\fP () const "
.br
.ti -1c
.RI "void \fBsetDefaultColor\fP (const \fBQColor\fP &c)"
.br
.ti -1c
.RI "\fBQSize\fP \fBsizeHint\fP () const "
.br
.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 \fBkeyPressEvent\fP (\fBQKeyEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQColor\fP \fBcolor\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A pushbutton to display or allow user selection of a color. 

This widget can be used to display or allow user selection of a color.
.PP
\fBSee also:\fP
.RS 4
\fBKColorDialog\fP
.RE
.PP
KDE Color Button
.PP
Definition at line 37 of file kcolorbutton.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KColorButton::KColorButton (\fBQWidget\fP * parent, const char * name = \fC0L\fP)"
.PP
Creates a color button. 
.PP
Definition at line 41 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked().
.SS "KColorButton::KColorButton (const \fBQColor\fP & c, \fBQWidget\fP * parent, const char * name = \fC0L\fP)"
.PP
Creates a color button with an initial color \fCc\fP. 
.PP
Definition at line 53 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked().
.SS "KColorButton::KColorButton (const \fBQColor\fP & c, const \fBQColor\fP & defaultColor, \fBQWidget\fP * parent, const char * name = \fC0L\fP)"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 66 of file kcolorbutton.cpp.
.PP
References QPushButton::clicked(), and defaultColor().
.SH "Member Function Documentation"
.PP 
.SS "\fBQColor\fP KColorButton::color () const\fC [inline]\fP"
.PP
Returns the currently chosen color. 
.PP
Definition at line 61 of file kcolorbutton.h.
.SS "void KColorButton::setColor (const \fBQColor\fP & c)"
.PP
Sets the current color to \fCc\fP. 
.PP
Definition at line 84 of file kcolorbutton.cpp.
.PP
References changed().
.SS "\fBQColor\fP KColorButton::defaultColor () const"
.PP
Returns the default color or an invalid color if no default color is set. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 93 of file kcolorbutton.cpp.
.PP
Referenced by KColorButton().
.SS "void KColorButton::setDefaultColor (const \fBQColor\fP & c)"
.PP
Sets the default color to \fCc\fP. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 98 of file kcolorbutton.cpp.
.PP
References QColor::isValid().
.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. 
.PP
Referenced by setColor().

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