|
OpenHantek
|
A widget for the selection of a color. More...
#include <colorbox.h>
Public Slots | |
| void | setColor (QColor color) |
| Sets the color. More... | |
| void | waitForColor () |
| Wait for the color dialog and apply chosen color. More... | |
Signals | |
| void | colorChanged (QColor color) |
| The color has been changed. More... | |
Public Member Functions | |
| ColorBox (QColor color, QWidget *parent=nullptr) | |
| Initializes the widget. More... | |
| ~ColorBox () | |
| Cleans up the widget. More... | |
| const QColor | getColor () |
| Get the current color. More... | |
Private Attributes | |
| QColor | color |
A widget for the selection of a color.
| ColorBox::ColorBox | ( | QColor | color_, |
| QWidget * | parent = nullptr |
||
| ) |
Initializes the widget.
| color_ | Initial color value. |
| parent | The parent widget. |
| ColorBox::~ColorBox | ( | ) |
Cleans up the widget.
|
signal |
The color has been changed.
| const QColor ColorBox::getColor | ( | ) |
Get the current color.
|
slot |
Sets the color.
| newColor | The new color. |
|
slot |
Wait for the color dialog and apply chosen color.
|
private |