src/widgets/colorbutton.h

Thu, 09 Jun 2022 11:51:42 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 09 Jun 2022 11:51:42 +0300
changeset 209
c93e4a1eaadb
parent 39
caac957e9834
permissions
-rw-r--r--

remove more dead code

#pragma once
#include <QPushButton>

/**
 * @brief A button that can be used to select a color
 */
class ColorButton : public QPushButton
{
public:
	ColorButton(const QColor& color = {}, QWidget* parent = nullptr);
	ColorButton(QWidget* parent = nullptr);
	QColor selectedColor() const;
	void setSelectedColor(const QColor& newSelectedColor);
private:
	QColor storedSelectedColor;
};

mercurial