Tue, 11 Apr 2023 22:39:18 +0300
Split GL preferences that affect GL build to a new build preferences structure, modifying that requires rebuild, modifying render preferences does not
#pragma once #include <QPushButton> #include <QLineEdit> /** * @brief A button that can be used to select a color */ class ColorEdit : public QWidget { Q_OBJECT Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) QLineEdit* lineEdit; QPushButton* button; public: 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); };