summaryrefslogtreecommitdiffabout
path: root/microkde/kcolorbutton.h
Side-by-side diff
Diffstat (limited to 'microkde/kcolorbutton.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kcolorbutton.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/microkde/kcolorbutton.h b/microkde/kcolorbutton.h
new file mode 100644
index 0000000..88b3774
--- a/dev/null
+++ b/microkde/kcolorbutton.h
@@ -0,0 +1,26 @@
+#ifndef MICROKDE_KCOLORBUTTON_H
+#define MICROKDE_KCOLORBUTTON_H
+
+#include <qpushbutton.h>
+#include <qcolor.h>
+#include <kglobal.h>
+#include <qpixmap.h>
+#include <qlabel.h>
+
+
+class KColorButton : public QPushButton
+{
+Q_OBJECT
+public:
+ KColorButton( QWidget *p );
+ void setColor ( const QColor &);
+ QColor color() const { return mColor ; }
+ signals:
+ void changed(const QColor &);
+private slots:
+ void edit();
+ private:
+ QColor mColor;
+};
+
+#endif