--- a/widgets/colorbutton.h Sat Apr 08 15:08:19 2023 +0300 +++ b/widgets/colorbutton.h Sat Apr 08 15:11:39 2023 +0300 @@ -5,15 +5,15 @@ /** * @brief A button that can be used to select a color */ -class ColorButton : public QWidget +class ColorEdit : public QWidget { Q_OBJECT Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) QLineEdit* lineEdit; QPushButton* button; public: - ColorButton(const QColor& color = {}, QWidget* parent = nullptr); - ColorButton(QWidget* parent = nullptr); + ColorEdit(const QColor& color = {}, QWidget* parent = nullptr); + ColorEdit(QWidget* parent = nullptr); QColor color() const; Q_SLOT void setColor(const QColor& color); Q_SIGNAL void colorChanged(const QColor& color);