src/widgets/colorindexinput.h

changeset 258
fe094d0687ad
parent 214
8e1fe64ce4e3
child 263
59b6027b9843
--- 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;
 };

mercurial