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 |
( |
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 |
( |
| ) |
|
bool KColorCells::acceptDrags |
( |
| ) |
const |
QColor KColorCells::color |
( |
int |
index | ) |
const |
Returns the color at a given index in the table.
Definition at line 216 of file kcolordialog.cpp.
void KColorCells::colorDoubleClicked |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| |
|
signal |
Emitted when a color in the table is double-clicked.
void KColorCells::colorSelected |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| |
|
signal |
Emitted when a color is selected in the table.
int KColorCells::count |
( |
| ) |
const |
Returns the total number of color cells in the table.
Definition at line 226 of file kcolordialog.cpp.
void KColorCells::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
void KColorCells::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
void KColorCells::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
void KColorCells::mouseDoubleClickEvent |
( |
QMouseEvent * |
| ) |
|
|
protectedvirtual |
void KColorCells::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
void KColorCells::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
void KColorCells::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
int KColorCells::positionToCell |
( |
const QPoint & |
pos, |
|
|
bool |
ignoreBorders = false |
|
) |
| const |
|
protected |
void KColorCells::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
int KColorCells::selectedIndex |
( |
| ) |
const |
Returns the index of the cell which is currently selected.
Definition at line 258 of file kcolordialog.cpp.
void KColorCells::setAcceptDrags |
( |
bool |
acceptDrags | ) |
|
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.
void KColorCells::setSelected |
( |
int |
index | ) |
|
void KColorCells::setShading |
( |
bool |
shade | ) |
|
bool KColorCells::shading |
( |
| ) |
const |
int KColorCells::sizeHintForColumn |
( |
int |
column | ) |
const |
|
protectedvirtual |
int KColorCells::sizeHintForRow |
( |
int |
column | ) |
const |
|
protectedvirtual |
bool KColorCells::acceptDrags |
|
readwrite |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.