CCIMXDesktop
 
Loading...
Searching...
No Matches
ColorSelectWidget.h
1#ifndef COLORSELECTWIDGET_H
2#define COLORSELECTWIDGET_H
3
9#include <QWidget>
10#include <QColor>
11
12namespace Ui {
17}
18
25class ColorSelectWidget : public QWidget {
26 Q_OBJECT
27
28public:
33 explicit ColorSelectWidget(QWidget* parent = nullptr);
34
39
40signals:
45 void colorSelected(const QColor& color);
46
47protected:
52 void processSelectedColor(const QColor& color);
53
54private:
58 Ui::ColorSelectWidget* ui;
59
63 QColor selectedColor;
64};
65
66#endif // COLORSELECTWIDGET_H
A widget that allows users to select a color.
Definition ColorSelectWidget.h:25
void colorSelected(const QColor &color)
Emitted when the user selects a color.
void processSelectedColor(const QColor &color)
Processes the selected color internally.
Definition ColorSelectWidget.cpp:24
~ColorSelectWidget()
Destructor.
Definition ColorSelectWidget.cpp:20