![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
A button for choosing a color. More...
#include "colorbutton.h"
Signals | |
void | colorChanged (const QColor &color) |
Emitted when the color is changed. More... | |
Public Member Functions | |
ColorButton (QWidget *parent=0) | |
Constructs the button with the given parent. More... | |
QColor | GetColor () const |
Returns the current color represented by this button. More... | |
void | SetColor (const QColor &color) |
Sets the color represented by this button. More... | |
A button for choosing a color.
This class provides a button that can be used to choose a color.
Definition at line 46 of file colorbutton.h.
LC::Util::ColorButton::ColorButton | ( | QWidget * | parent = 0 | ) |
Constructs the button with the given parent.
[in] | parent | The parent widget for the button. |
Definition at line 37 of file colorbutton.cpp.
|
signal |
Emitted when the color is changed.
[out] | color | The new color represented by this button. |
Referenced by SetColor().
QColor LC::Util::ColorButton::GetColor | ( | ) | const |
Returns the current color represented by this button.
The default value for the color is black.
Definition at line 48 of file colorbutton.cpp.
void LC::Util::ColorButton::SetColor | ( | const QColor & | color | ) |
Sets the color represented by this button.
Sets the color of this button and emits the colorChanged() signal if the color has been changed.
[in] | color | The new color to be represented by this button. |
Definition at line 53 of file colorbutton.cpp.
References colorChanged().