From 066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 21 Mar 2016 20:35:05 +0100 Subject: Initial import of baghira 0.8 --- config/colorpicker.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 config/colorpicker.h (limited to 'config/colorpicker.h') diff --git a/config/colorpicker.h b/config/colorpicker.h new file mode 100644 index 0000000..6f813b2 --- /dev/null +++ b/config/colorpicker.h @@ -0,0 +1,39 @@ +#ifndef COLORPICKER_H +#define COLORPICKER_H + +#include + +class KIntNumInput; +class QColor; + +class ColorPicker : public QGroupBox +{ + Q_OBJECT + +public: + ColorPicker( QWidget* parent = 0, const char* name = 0); + ~ColorPicker(); + QColor & color(); + +public slots: + void setColor(const QColor & color); + void setRed(int red); + void emitChange(); + void setGreen(int green); + void setBlue(int blue); + void reset(); + void init(); + +protected: + KIntNumInput *red; + KIntNumInput *green; + KIntNumInput *blue; + QColor color_; + QColor color__; + +signals: + void colorChanged(QColor color); + +}; + +#endif // COLORPICKER_H -- cgit v1.2.1