Fri, 07 Feb 2020 02:01:21 +0200
wrote the id color in terms of the id value in the shader now that I can get the id to the shader properly
#pragma once #include <QPushButton> /** * @brief A button that can be used to select a color */ class ColorButton : public QPushButton { public: ColorButton(const QColor& color = {}, QWidget* parent = nullptr); ColorButton(QWidget* parent = nullptr); QColor selectedColor() const; void setSelectedColor(const QColor& newSelectedColor); private: QColor storedSelectedColor; };