pqColorChooserButton is a QToolButton subclass suitable for showing a a button that allows the use to select/change color.
More...
#include <pqColorChooserButton.h>
|
virtual void | setChosenColor (const QColor &) |
| set the color More...
|
|
void | setChosenColorRgbF (const QVariantList &) |
| set the color as a QVariantList with exactly 3 QVariants with values in the range [0, 1] for each of the 3 color components. More...
|
|
void | setChosenColorRgbaF (const QVariantList &) |
| set the color as a QVariantList with exactly 4 QVariants with values in the range [0, 1] for each of the 4 color components. More...
|
|
virtual void | chooseColor () |
| show a dialog to choose the color More...
|
|
pqColorChooserButton is a QToolButton subclass suitable for showing a a button that allows the use to select/change color.
It renders a color swatch next to the button text matching the chosen color.
Definition at line 44 of file pqColorChooserButton.h.
§ pqColorChooserButton()
pqColorChooserButton::pqColorChooserButton |
( |
QWidget * |
p | ) |
|
constructor requires a QComboBox
§ chosenColor()
QColor pqColorChooserButton::chosenColor |
( |
| ) |
const |
§ chosenColorRgbF()
QVariantList pqColorChooserButton::chosenColorRgbF |
( |
| ) |
const |
Returns the chosen color as a QVariantList with exatctly 3 QVariants with values in the range [0, 1] for each of the 3 color components.
§ chosenColorRgbaF()
QVariantList pqColorChooserButton::chosenColorRgbaF |
( |
| ) |
const |
Returns the chosen color as a QVariantList with exatctly 4 QVariants with values in the range [0, 1] for each of the 4 color components.
§ setIconRadiusHeightRatio()
void pqColorChooserButton::setIconRadiusHeightRatio |
( |
double |
val | ) |
|
|
inline |
§ iconRadiusHeightRatio()
double pqColorChooserButton::iconRadiusHeightRatio |
( |
| ) |
const |
|
inline |
§ showAlphaChannel()
bool pqColorChooserButton::showAlphaChannel |
( |
| ) |
const |
|
inline |
When true, the widget will allow users to choose the alpha channel.
Definition at line 77 of file pqColorChooserButton.h.
§ setShowAlphaChannel()
void pqColorChooserButton::setShowAlphaChannel |
( |
bool |
val | ) |
|
|
inline |
§ chosenColorChanged
void pqColorChooserButton::chosenColorChanged |
( |
const QColor & |
| ) |
|
|
signal |
signal color changed.
This is fired in setChosenColor() only when the color is indeed different.
§ validColorChosen
void pqColorChooserButton::validColorChosen |
( |
const QColor & |
| ) |
|
|
signal |
§ setChosenColor
virtual void pqColorChooserButton::setChosenColor |
( |
const QColor & |
| ) |
|
|
virtualslot |
§ setChosenColorRgbF
void pqColorChooserButton::setChosenColorRgbF |
( |
const QVariantList & |
| ) |
|
|
slot |
set the color as a QVariantList with exactly 3 QVariants with values in the range [0, 1] for each of the 3 color components.
§ setChosenColorRgbaF
void pqColorChooserButton::setChosenColorRgbaF |
( |
const QVariantList & |
| ) |
|
|
slot |
set the color as a QVariantList with exactly 4 QVariants with values in the range [0, 1] for each of the 4 color components.
§ chooseColor
virtual void pqColorChooserButton::chooseColor |
( |
| ) |
|
|
virtualslot |
show a dialog to choose the color
§ resizeEvent()
virtual void pqColorChooserButton::resizeEvent |
( |
QResizeEvent * |
rEvent | ) |
|
|
protectedvirtual |
overridden to resize the color icon.
§ renderColorSwatch()
QIcon pqColorChooserButton::renderColorSwatch |
( |
const QColor & |
| ) |
|
|
protected |
renders an icon for the color.
§ Color
double pqColorChooserButton::Color[4] |
|
protected |
§ IconRadiusHeightRatio
double pqColorChooserButton::IconRadiusHeightRatio |
|
protected |
§ ShowAlphaChannel
bool pqColorChooserButton::ShowAlphaChannel |
|
protected |
§ chosenColor
QColor pqColorChooserButton::chosenColor |
|
readwrite |
§ chosenColorRgbF
QVariantList pqColorChooserButton::chosenColorRgbF |
|
readwrite |
§ chosenColorRgbaF
QVariantList pqColorChooserButton::chosenColorRgbaF |
|
readwrite |
§ showAlphaChannel
bool pqColorChooserButton::showAlphaChannel |
|
readwrite |
The documentation for this class was generated from the following file: