Tue, 28 Jun 2022 13:03:21 +0300
Don't create more than one settings editor
#pragma once #include "src/colors.h" class ColorIndexInput : public QWidget { Q_OBJECT const ColorTable* colorTable = nullptr; class Ui_ColorIndexInput& ui; public: ColorIndexInput(QWidget *parent = nullptr); ~ColorIndexInput(); ldraw::Color selectedColor() const; void setSelectedColor(ldraw::Color color); Q_SIGNALS: void colorChanged(ldraw::Color color); private: };