kdeui
KColorPatch Class Reference
A color displayer. More...
#include <kcolordialog.h>
Inheritance diagram for KColorPatch:

Signals | |
| void | colorChanged (const QColor &) |
Public Member Functions | |
| KColorPatch (QWidget *parent) | |
| void | setColor (const QColor &col) |
| virtual | ~KColorPatch () |
Protected Member Functions | |
| virtual void | dragEnterEvent (QDragEnterEvent *) |
| virtual void | drawContents (QPainter *painter) |
| virtual void | dropEvent (QDropEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | virtual_hook (int id, void *data) |
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.
Definition at line 311 of file kcolordialog.h.
Constructor & Destructor Documentation
| KColorPatch::KColorPatch | ( | QWidget * | parent | ) |
Definition at line 494 of file kcolordialog.cpp.
| KColorPatch::~KColorPatch | ( | ) | [virtual] |
Definition at line 501 of file kcolordialog.cpp.
Member Function Documentation
| void KColorPatch::colorChanged | ( | const QColor & | ) | [signal] |
| void KColorPatch::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 538 of file kcolordialog.cpp.
| void KColorPatch::drawContents | ( | QPainter * | painter | ) | [protected, virtual] |
| void KColorPatch::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 543 of file kcolordialog.cpp.
| void KColorPatch::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 530 of file kcolordialog.cpp.
| void KColorPatch::setColor | ( | const QColor & | col | ) |
Definition at line 507 of file kcolordialog.cpp.
| void KColorPatch::virtual_hook | ( | int | id, | |
| void * | data | |||
| ) | [protected, virtual] |
Definition at line 1608 of file kcolordialog.cpp.
The documentation for this class was generated from the following files:
KDE 3.5 API Reference