#include <kcolordialog.h>
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.
◆ KColorPatch()
KColorPatch::KColorPatch |
( |
QWidget * |
parent | ) |
|
◆ ~KColorPatch()
KColorPatch::~KColorPatch |
( |
| ) |
|
|
virtual |
◆ color()
QColor KColorPatch::color |
( |
| ) |
const |
◆ colorChanged
void KColorPatch::colorChanged |
( |
const QColor & |
| ) |
|
|
signal |
This signal is emitted whenever the current color changes due to a drop event.
◆ dragEnterEvent()
void KColorPatch::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropEvent()
void KColorPatch::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
void KColorPatch::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
◆ paintEvent()
void KColorPatch::paintEvent |
( |
QPaintEvent * |
pe | ) |
|
|
protectedvirtual |
◆ setColor()
void KColorPatch::setColor |
( |
const QColor & |
col | ) |
|
Set the color to display and update the display.
- Parameters
-
Definition at line 495 of file kcolordialog.cpp.
◆ color
QColor KColorPatch::color |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.