src/widgets/colorselectdialog.h

changeset 205
1a4342d80de7
parent 139
72098474d362
child 206
654661eab7f3
--- 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<QPushButton*> buttons;
-	ldraw::Color selectedColor = ldraw::MAIN_COLOR;
+	ColorIndex selectedColor = MAIN_COLOR;
 };

mercurial