![]() |
LeechCraft 0.6.70-16373-g319c272718
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. | |
Public Member Functions | |
ColorButton (QWidget *parent=nullptr) | |
Constructs the button with the given parent. | |
QColor | GetColor () const |
Returns the current color represented by this button. | |
void | SetColor (const QColor &color) |
Sets the color represented by this button. | |
A button for choosing a color.
This class provides a button that can be used to choose a color.
Definition at line 23 of file colorbutton.h.
|
explicit |
Constructs the button with the given parent.
[in] | parent | The parent widget for the button. |
Definition at line 14 of file colorbutton.cpp.
References LC::Util::Filter(), and SetColor().
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 25 of file colorbutton.cpp.
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 30 of file colorbutton.cpp.
References colorChanged(), and LC::Util::Filter().
Referenced by ColorButton().