src/widgets/colorindexinput.h

Sat, 08 Apr 2023 12:24:04 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sat, 08 Apr 2023 12:24:04 +0300
changeset 341
71c8cea3c205
parent 264
76a025db4948
permissions
-rw-r--r--

Save settings as soon as they are changed, Cancel and Reset buttons revert changes

#pragma once
#include "src/colors.h"

class ColorIndexInput : public QWidget
{
	Q_OBJECT
	const ColorTable* colorTable = nullptr;
	class Ui_ColorIndexInput& ui;
public:
	ColorIndexInput(QWidget *parent = nullptr);
	~ColorIndexInput();
	ldraw::Color selectedColor() const;
	void setSelectedColor(ldraw::Color color);
Q_SIGNALS:
	void colorChanged(ldraw::Color color);
private:
};

mercurial