author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kcolorbutton.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
-rw-r--r-- | microkde/kcolorbutton.h | 26 |
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 @@ | |||
1 | #ifndef MICROKDE_KCOLORBUTTON_H | ||
2 | #define MICROKDE_KCOLORBUTTON_H | ||
3 | |||
4 | #include <qpushbutton.h> | ||
5 | #include <qcolor.h> | ||
6 | #include <kglobal.h> | ||
7 | #include <qpixmap.h> | ||
8 | #include <qlabel.h> | ||
9 | |||
10 | |||
11 | class KColorButton : public QPushButton | ||
12 | { | ||
13 | Q_OBJECT | ||
14 | public: | ||
15 | KColorButton( QWidget *p ); | ||
16 | void setColor ( const QColor &); | ||
17 | QColor color() const { return mColor ; } | ||
18 | signals: | ||
19 | void changed(const QColor &); | ||
20 | private slots: | ||
21 | void edit(); | ||
22 | private: | ||
23 | QColor mColor; | ||
24 | }; | ||
25 | |||
26 | #endif | ||