KColorButton Class Reference
This widget can be used to display or allow user selection of a color. A pushbutton to display or allow user selection of a color. More...
#include <kcolorbutton.h>
Inheritance diagram for KColorButton:


| Signals | |
| void | changed (const QColor &newColor) | 
| Public Member Functions | |
| 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) | |
| virtual | ~KColorButton () | 
| QColor | color () const | 
| void | setColor (const QColor &c) | 
| QSize | sizeHint () const | 
| Protected Slots | |
| void | chooseColor () | 
| Protected Member Functions | |
| virtual void | drawButtonLabel (QPainter *p) | 
| virtual void | dragEnterEvent (QDragEnterEvent *) | 
| virtual void | dropEvent (QDropEvent *) | 
| virtual void | mousePressEvent (QMouseEvent *e) | 
| virtual void | mouseMoveEvent (QMouseEvent *e) | 
| virtual void | virtual_hook (int id, void *data) | 
Detailed Description
This widget can be used to display or allow user selection of a color. A pushbutton to display or allow user selection of a color.
- See also:
- KColorDialog
 
KDE Color Button
- Version:
- Id
- kcolorbutton.h,v 1.11 2003/09/06 19:06:31 binner Exp
 
Definition at line 36 of file kcolorbutton.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||
| Creates a color button. 
 Definition at line 39 of file kcolorbutton.cpp. References QPushButton::clicked(). | 
| 
 | ||||||||||||||||
| 
Creates a color button with an initial color  
 Definition at line 51 of file kcolorbutton.cpp. References QPushButton::clicked(). | 
| 
 | ||||||||||||||||||||
| 
 
 
 Definition at line 64 of file kcolorbutton.cpp. References QPushButton::clicked(). | 
| 
 | 
| Destructor. 
 Definition at line 77 of file kcolorbutton.cpp. | 
Member Function Documentation
| 
 | 
| Returns the currently chosen color. 
 Definition at line 62 of file kcolorbutton.h. | 
| 
 | 
| 
Sets the current color to  
 Definition at line 82 of file kcolorbutton.cpp. References changed(). | 
| 
 | 
| Emitted when the color of the widget is changed, either with setColor() or via user selection. 
 Referenced by setColor(). | 
The documentation for this class was generated from the following files:

