src/widgets/colorbutton.h

Tue, 28 Sep 2021 22:17:52 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 28 Sep 2021 22:17:52 +0300
changeset 144
5d73a6717321
parent 39
caac957e9834
permissions
-rw-r--r--

Fix handling of "BFC INVERTNEXT" with multiple inner whitespaces

#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