diff -r afdab56e8210 -r fe094d0687ad src/widgets/colorindexinput.h --- a/src/widgets/colorindexinput.h Wed Jun 22 23:32:34 2022 +0300 +++ b/src/widgets/colorindexinput.h Wed Jun 22 23:51:06 2022 +0300 @@ -4,14 +4,14 @@ class ColorIndexInput : public QWidget { Q_OBJECT + const ColorTable* colorTable = nullptr; + class Ui_ColorIndexInput& ui; public: - ColorIndexInput(ColorTable *colorTable, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr); + ColorIndexInput(QWidget *parent = nullptr); ~ColorIndexInput(); ldraw::Color selectedColor() const; void setSelectedColor(ldraw::Color color); Q_SIGNALS: void colorChanged(ldraw::Color color); private: - ColorTable* const colorTable; - class Ui_ColorIndexInput& ui; };