KColorPatch Class Reference
A color displayer. More...
#include <kcolordialog.h>

Signals | |
| void | colorChanged (const QColor &) |
Public Member Functions | |
| KColorPatch (QWidget *parent) | |
| virtual | ~KColorPatch () |
| QColor | color () const |
| void | setColor (const QColor &col) |
Protected Member Functions | |
| virtual void | dragEnterEvent (QDragEnterEvent *) |
| virtual void | dropEvent (QDropEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | paintEvent (QPaintEvent *pe) |
Properties | |
| QColor | color |
Detailed Description
A color displayer.
The KColorPatch widget is a (usually small) widget showing a selected color e.g. in the KColorDialog. It automatically handles drag and drop from and on the widget.
KDE Color Patch
Definition at line 110 of file kcolordialog.h.
Constructor & Destructor Documentation
| KColorPatch::KColorPatch | ( | QWidget * | parent | ) |
Definition at line 468 of file kcolordialog.cpp.
| KColorPatch::~KColorPatch | ( | ) | [virtual] |
Definition at line 475 of file kcolordialog.cpp.
Member Function Documentation
| QColor KColorPatch::color | ( | ) | const |
Get the currently displayed color.
| void KColorPatch::colorChanged | ( | const QColor & | ) | [signal] |
This signal is emitted whenever the current color changes due to a drop event.
| void KColorPatch::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 508 of file kcolordialog.cpp.
| void KColorPatch::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 513 of file kcolordialog.cpp.
| void KColorPatch::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 500 of file kcolordialog.cpp.
| void KColorPatch::paintEvent | ( | QPaintEvent * | pe | ) | [protected, virtual] |
Definition at line 492 of file kcolordialog.cpp.
| void KColorPatch::setColor | ( | const QColor & | col | ) |
Set the color to display and update the display.
- Parameters:
-
col color to display
Definition at line 485 of file kcolordialog.cpp.
Property Documentation
QColor KColorPatch::color [read, write] |
Definition at line 113 of file kcolordialog.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference