diff -r c6f5de03dc0f -r afdab56e8210 widgets/colorbutton.h --- a/widgets/colorbutton.h Wed Jun 22 22:59:56 2022 +0300 +++ b/widgets/colorbutton.h Wed Jun 22 23:32:34 2022 +0300 @@ -8,12 +8,11 @@ { Q_OBJECT Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) + QColor storedSelectedColor; public: ColorButton(const QColor& color = {}, QWidget* parent = nullptr); ColorButton(QWidget* parent = nullptr); const QColor& color() const; Q_SLOT void setColor(const QColor& color); Q_SIGNAL void colorChanged(const QColor& color); -private: - QColor storedSelectedColor; };