KColorButton Class Reference
#include <kcolorbutton.h>
Inheritance diagram for KColorButton:

Detailed Description
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.
- See also:
- KColorDialog
KDE Color Button
Definition at line 37 of file kcolorbutton.h.
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) |
| QColor | defaultColor () const |
| void | setDefaultColor (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 | keyPressEvent (QKeyEvent *e) |
| virtual void | virtual_hook (int id, void *data) |
Properties | |
| QColor | color [] |
| QColor | defaultColor [] |
Constructor & Destructor Documentation
| KColorButton::KColorButton | ( | QWidget * | parent, | |
| const char * | name = 0L | |||
| ) |
Member Function Documentation
| QColor KColorButton::color | ( | ) | const [inline] |
| void KColorButton::setColor | ( | const QColor & | c | ) |
| QColor KColorButton::defaultColor | ( | ) | const |
Returns the default color or an invalid color if no default color is set.
- Since:
- 3.4
| void KColorButton::setDefaultColor | ( | const QColor & | c | ) |
| void KColorButton::changed | ( | const QColor & | newColor | ) | [signal] |
Emitted when the color of the widget is changed, either with setColor() or via user selection.
The documentation for this class was generated from the following files:

