wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
The QwwColorComboBox class provides a combobox that allows to pick colors. More...
#include <QwwColorComboBox>
Inherits QComboBox.
QwwColorComboBox ( QWidget * parent = 0 ) | |
void | addColor ( const QColor & color, const QString & name ) |
QColor | color ( int index ) const |
int | colorCount () const |
QStringList | colors () const |
QColor | currentColor () const |
void | insertColor ( int index, const QColor & color, const QString & name ) |
bool | isColorDialogEnabled () const |
void | setColorDialogEnabled ( bool enabled = true ) |
void | setColors ( const QStringList & map ) |
void | setStandardColors () |
void | setCurrentColor ( const QColor & color ) |
void | activated ( const QColor & color ) |
The QwwColorComboBox class provides a combobox that allows to pick colors.
This property holds number of colors available.
Access functions:
int | colorCount () const |
See also colors and currentColor.
This property holds property holds information whether picking custom colors using a color dialog is enabled.
Access functions:
bool | isColorDialogEnabled () const |
void | setColorDialogEnabled ( bool enabled = true ) |
This property holds list of colors known to the button.
Access functions:
QStringList | colors () const |
void | setColors ( const QStringList & map ) |
See also colorCount and currentColor.
This property holds currently chosen color.
Access functions:
QColor | currentColor () const |
See also colors and colorCount.
Constructs a color combo box with a given parent.
Signal emitted when color is activated
Adds the specified color with a name to the list of available colors.
See also insertColor().
Returns the color at position index
See also currentColor and colors.
Inserts the specified color with a name in the list of available colors under specified index
See also addColor().
Sets color as the currently picked color.
Color is added to the list of available colors if it's not there yet.
color
See also currentColor().
Fills the list of available colors with standard colors.
See also colors.
Copyright © 2007-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0 |