2022-01-04 18:11:48 +08:00
|
|
|
#ifndef LOCOLORSELECTOR_H
|
|
|
|
#define LOCOLORSELECTOR_H
|
|
|
|
|
|
|
|
#include <QPushButton>
|
2022-08-25 18:37:24 +08:00
|
|
|
|
|
|
|
class LoColorSelector : public QPushButton {
|
2022-01-04 18:11:48 +08:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit LoColorSelector(QWidget *parent = nullptr);
|
2022-08-25 18:37:24 +08:00
|
|
|
explicit LoColorSelector(const QString &text, const QColor &color = Qt::transparent, QWidget *parent = nullptr);
|
2022-01-04 18:11:48 +08:00
|
|
|
void init();
|
|
|
|
void setColor(const QColor &color);
|
|
|
|
|
2022-08-25 18:37:24 +08:00
|
|
|
QColor color;
|
2022-01-04 18:11:48 +08:00
|
|
|
signals:
|
|
|
|
void sColorChanged(const QColor &);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOCOLORSELECTOR_H
|