diff options
Diffstat (limited to 'lscolorpicker.h')
-rw-r--r-- | lscolorpicker.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lscolorpicker.h b/lscolorpicker.h new file mode 100644 index 0000000..7f16c57 --- /dev/null +++ b/lscolorpicker.h @@ -0,0 +1,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 |