#include <kcolordialog.h>
List of all members.
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 116 of file kcolordialog.h.
Constructor & Destructor Documentation
KColorPatch::KColorPatch |
( |
QWidget * |
parent | ) |
|
KColorPatch::~KColorPatch |
( |
| ) |
|
|
virtual |
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 | ) |
|
|
protectedvirtual |
void KColorPatch::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
void KColorPatch::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
void KColorPatch::paintEvent |
( |
QPaintEvent * |
pe | ) |
|
|
protectedvirtual |
void KColorPatch::setColor |
( |
const QColor & |
col | ) |
|
Set the color to display and update the display.
- Parameters:
-
Definition at line 495 of file kcolordialog.cpp.
Property Documentation
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:49:44 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.