Fri, 04 Mar 2022 11:37:50 +0200
Major refactoring
- Model now just stores objects
- Document contains business logic
- Model::EditContext is now ModelEditor, no longer a nested class
#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; };