A widget for the selection of a color.
More...
#include <colorbox.h>
|
| void | colorChanged (QColor color) |
| | The color has been changed.
|
|
| | ColorBox (QColor color, QWidget *parent=nullptr) |
| | Initializes the widget.
|
| | ~ColorBox () override |
| | Cleans up the widget.
|
| const QColor | getColor () |
| | Get the current color.
|
A widget for the selection of a color.
◆ ColorBox()
| ColorBox::ColorBox |
( |
QColor | color_, |
|
|
QWidget * | parent = nullptr ) |
Initializes the widget.
- Parameters
-
| color_ | Initial color value. |
| parent | The parent widget. |
◆ ~ColorBox()
◆ colorChanged
| void ColorBox::colorChanged |
( |
QColor | color | ) |
|
|
signal |
The color has been changed.
◆ getColor()
| const QColor ColorBox::getColor |
( |
| ) |
|
Get the current color.
- Returns
- The current color as QColor.
◆ setColor
| void ColorBox::setColor |
( |
QColor | newColor | ) |
|
|
slot |
Sets the color.
- Parameters
-
◆ waitForColor
| void ColorBox::waitForColor |
( |
| ) |
|
|
slot |
Wait for the color dialog and apply chosen color.
◆ color
The documentation for this class was generated from the following files: