diff -r 52e10e8d88cc -r 1a4342d80de7 src/widgets/colorselectdialog.h --- a/src/widgets/colorselectdialog.h Wed Jun 08 19:33:00 2022 +0300 +++ b/src/widgets/colorselectdialog.h Wed Jun 08 20:41:21 2022 +0300 @@ -10,9 +10,9 @@ { Q_OBJECT public: - explicit ColorSelectDialog(const ldraw::ColorTable& colorTable, QWidget* parent = nullptr); + explicit ColorSelectDialog(const ColorTable& colorTable, QWidget* parent = nullptr); ~ColorSelectDialog(); - void setCurrentColor(ldraw::Color color); + void setCurrentColor(ColorIndex color); ldraw::Color currentColor() const; private Q_SLOTS: void populateColors(); @@ -24,7 +24,7 @@ void makeColorButtons(); bool filterColor(ldraw::Color color) const; class Ui_ColorSelectDialog& ui; - const ldraw::ColorTable& colorTable; + const ColorTable& colorTable; std::vector buttons; - ldraw::Color selectedColor = ldraw::MAIN_COLOR; + ColorIndex selectedColor = MAIN_COLOR; };