KDEUI
#include <kcolordialog.h>
A table of editable color cells.
- Author
- Martin Jones mjone.nosp@m.s@kd.nosp@m.e.org
Definition at line 40 of file kcolordialog.h.
◆ KColorCells()
KColorCells::KColorCells |
( |
QWidget * |
parent, |
|
|
int |
rows, |
|
|
int |
columns |
|
) |
| |
Constructs a new table of color cells, consisting of rows
* columns
colors.
- Parameters
-
parent | The parent of the new widget |
rows | The number of rows in the table |
columns | The number of columns in the table |
Definition at line 182 of file kcolordialog.cpp.
◆ ~KColorCells()
KColorCells::~KColorCells |
( |
| ) |
|
◆ acceptDrags()
bool KColorCells::acceptDrags |
( |
| ) |
const |
◆ color()
QColor KColorCells::color |
( |
int |
index | ) |
const |
Returns the color at a given index in the table.
Definition at line 216 of file kcolordialog.cpp.
◆ colorDoubleClicked
void KColorCells::colorDoubleClicked |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| |
|
signal |
Emitted when a color in the table is double-clicked.
◆ colorSelected
void KColorCells::colorSelected |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| |
|
signal |
Emitted when a color is selected in the table.
◆ count()
int KColorCells::count |
( |
| ) |
const |
Returns the total number of color cells in the table.
Definition at line 226 of file kcolordialog.cpp.
◆ dragEnterEvent()
void KColorCells::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
void KColorCells::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropEvent()
void KColorCells::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ mouseDoubleClickEvent()
void KColorCells::mouseDoubleClickEvent |
( |
QMouseEvent * |
| ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
void KColorCells::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
void KColorCells::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
void KColorCells::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
◆ positionToCell()
int KColorCells::positionToCell |
( |
const QPoint & |
pos, |
|
|
bool |
ignoreBorders = false |
|
) |
| const |
|
protected |
◆ resizeEvent()
void KColorCells::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
◆ selectedIndex()
int KColorCells::selectedIndex |
( |
| ) |
const |
Returns the index of the cell which is currently selected.
Definition at line 258 of file kcolordialog.cpp.
◆ setAcceptDrags()
void KColorCells::setAcceptDrags |
( |
bool |
acceptDrags | ) |
|
◆ setColor()
void KColorCells::setColor |
( |
int |
index, |
|
|
const QColor & |
col |
|
) |
| |
Sets the color in the given index in the table.
Definition at line 263 of file kcolordialog.cpp.
◆ setSelected()
void KColorCells::setSelected |
( |
int |
index | ) |
|
◆ setShading()
void KColorCells::setShading |
( |
bool |
shade | ) |
|
◆ shading()
bool KColorCells::shading |
( |
| ) |
const |
◆ sizeHintForColumn()
int KColorCells::sizeHintForColumn |
( |
int |
column | ) |
const |
|
protectedvirtual |
◆ sizeHintForRow()
int KColorCells::sizeHintForRow |
( |
int |
column | ) |
const |
|
protectedvirtual |
◆ acceptDrags
bool KColorCells::acceptDrags |
|
readwrite |
◆ shading
bool KColorCells::shading |
|
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.