LeechCraft
0.6.70-15082-g543737046d
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=nullptr) | |
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 29 of file colorbutton.h.
|
explicit |
Constructs the button with the given parent.
[in] | parent | The parent widget for the button. |
Definition at line 20 of file colorbutton.cpp.
|
signal |
Emitted when the color is changed.
[out] | color | The new color represented by this button. |
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 31 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 36 of file colorbutton.cpp.