KDEUI
#include <kcolorcombo.h>
Signals | |
void | activated (const QColor &col) |
void | highlighted (const QColor &col) |
Public Member Functions | |
KColorCombo (QWidget *parent=0) | |
~KColorCombo () | |
QColor | color () const |
QList< QColor > | colors () const |
bool | isCustomColor () const |
void | setColor (const QColor &col) |
void | setColors (const QList< QColor > &colors) |
void | showEmptyList () |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) |
Properties | |
QColor | color |
QList< QColor > | colors |
Detailed Description
Combobox for colors.
The combobox provides some preset colors to be selected, and an entry to select a custom color using a color dialog.
Definition at line 45 of file kcolorcombo.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a color combo box.
Definition at line 226 of file kcolorcombo.cpp.
KColorCombo::~KColorCombo | ( | ) |
Definition at line 243 of file kcolorcombo.cpp.
Member Function Documentation
|
signal |
Emitted when a new color box has been selected.
QColor KColorCombo::color | ( | ) | const |
Returns the currently selected color.
Return the list of colors available for selection.
- Returns
- list of colors
|
signal |
Emitted when a new item has been highlighted.
bool KColorCombo::isCustomColor | ( | ) | const |
Find whether the currently selected color is a custom color selected using a color dialog.
Definition at line 292 of file kcolorcombo.cpp.
|
protectedvirtual |
Definition at line 297 of file kcolorcombo.cpp.
void KColorCombo::setColor | ( | const QColor & | col | ) |
Set a custom list of colors to choose from, in place of the standard list.
- Parameters
-
cols list of colors. If empty, the selection list reverts to the standard list.
Definition at line 248 of file kcolorcombo.cpp.
void KColorCombo::showEmptyList | ( | ) |
Clear the color list and don't show it, till the next setColor() call.
Show an empty list, till the next color is set with setColor.
Definition at line 317 of file kcolorcombo.cpp.
Property Documentation
|
readwrite |
Returns the currently selected color.
Definition at line 48 of file kcolorcombo.h.
Definition at line 49 of file kcolorcombo.h.
The documentation for this class was generated from the following files:
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.