KDEUI
KColorCells Class Reference
A table of editable color cells. More...
#include <kcolordialog.h>
Signals | |
| void | colorDoubleClicked (int index, const QColor &color) |
| void | colorSelected (int index, const QColor &color) |
Public Member Functions | |
| QColor | color (int index) const |
| int | count () const |
| KColorCells (QWidget *parent, int rows, int columns) | |
| int | selectedIndex () const |
| void | setAcceptDrags (bool acceptDrags) |
| void | setColor (int index, const QColor &col) |
| void | setSelected (int index) |
| void | setShading (bool shade) |
| ~KColorCells () | |
Protected Member Functions | |
| virtual void | dragEnterEvent (QDragEnterEvent *) |
| virtual void | dragMoveEvent (QDragMoveEvent *) |
| virtual void | dropEvent (QDropEvent *) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| int | positionToCell (const QPoint &pos, bool ignoreBorders=false) const |
| virtual void | resizeEvent (QResizeEvent *event) |
| virtual int | sizeHintForColumn (int column) const |
| virtual int | sizeHintForRow (int column) const |
Detailed Description
A table of editable color cells.
Definition at line 40 of file kcolordialog.h.
Constructor & Destructor Documentation
| 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 151 of file kcolordialog.cpp.
| KColorCells::~KColorCells | ( | ) |
Definition at line 180 of file kcolordialog.cpp.
Member Function Documentation
| QColor KColorCells::color | ( | int | index | ) | const |
Returns the color at a given index in the table.
Definition at line 185 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 195 of file kcolordialog.cpp.
| void KColorCells::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 355 of file kcolordialog.cpp.
| void KColorCells::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
Definition at line 365 of file kcolordialog.cpp.
| void KColorCells::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 374 of file kcolordialog.cpp.
| void KColorCells::mouseDoubleClickEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 417 of file kcolordialog.cpp.
| void KColorCells::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 331 of file kcolordialog.cpp.
| void KColorCells::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 295 of file kcolordialog.cpp.
| void KColorCells::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 387 of file kcolordialog.cpp.
| int KColorCells::positionToCell | ( | const QPoint & | pos, | |
| bool | ignoreBorders = false | |||
| ) | const [protected] |
Definition at line 304 of file kcolordialog.cpp.
| void KColorCells::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 270 of file kcolordialog.cpp.
| int KColorCells::selectedIndex | ( | ) | const |
Returns the index of the cell which is currently selected.
Definition at line 217 of file kcolordialog.cpp.
| void KColorCells::setAcceptDrags | ( | bool | acceptDrags | ) |
Definition at line 205 of file kcolordialog.cpp.
| void KColorCells::setColor | ( | int | index, | |
| const QColor & | col | |||
| ) |
Sets the color in the given index in the table.
Definition at line 222 of file kcolordialog.cpp.
| void KColorCells::setSelected | ( | int | index | ) |
Sets the currently selected cell to index.
Definition at line 210 of file kcolordialog.cpp.
| void KColorCells::setShading | ( | bool | shade | ) |
Definition at line 200 of file kcolordialog.cpp.
| int KColorCells::sizeHintForColumn | ( | int | column | ) | const [protected, virtual] |
Definition at line 285 of file kcolordialog.cpp.
| int KColorCells::sizeHintForRow | ( | int | column | ) | const [protected, virtual] |
Definition at line 290 of file kcolordialog.cpp.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference