summaryrefslogtreecommitdiff
path: root/lscolorpicker.h
blob: 7f16c57928774bdeebaae0dcac8685cc5850f0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LSCOLORPICKER_H
#define LSCOLORPICKER_H

#include <QToolButton>

class LSColorPicker : public QToolButton
{
	Q_OBJECT
public:
	explicit LSColorPicker(QWidget *parent = 0);

	QColor color() const { return m_color; }
	void setColor(QColor newCol);

private:
	QColor m_color;

private slots:
	void tryAndChoose();
	void refreshButton();
	
signals:
	void colorPicked(QColor newCol, QColor oldCol);
	
};

#endif // LSCOLORPICKER_H