Tue, 14 Jun 2022 23:04:49 +0300
Edit tools: get rid of the preview polygon and render the result-to-be
#pragma once #include "document.h" class ColorIndexInput : public QWidget { Q_OBJECT public: ColorIndexInput(ColorTable *colorTable, ColorIndex color = MAIN_COLOR, 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; };