-rw-r--r-- | microkde/kcolorbutton.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/microkde/kcolorbutton.h b/microkde/kcolorbutton.h index 88b3774..983771b 100644 --- a/microkde/kcolorbutton.h +++ b/microkde/kcolorbutton.h | |||
@@ -5,22 +5,25 @@ | |||
5 | #include <qcolor.h> | 5 | #include <qcolor.h> |
6 | #include <kglobal.h> | 6 | #include <kglobal.h> |
7 | #include <qpixmap.h> | 7 | #include <qpixmap.h> |
8 | #include <qlabel.h> | 8 | #include <qlabel.h> |
9 | 9 | ||
10 | 10 | ||
11 | class KColorButton : public QPushButton | 11 | class KColorButton : public QPushButton |
12 | { | 12 | { |
13 | Q_OBJECT | 13 | Q_OBJECT |
14 | public: | 14 | public: |
15 | KColorButton( QWidget *p ); | 15 | KColorButton( QWidget *p ); |
16 | void setColor ( const QColor &); | 16 | void setColor ( const QColor &); |
17 | void setID ( int i) ; | ||
17 | QColor color() const { return mColor ; } | 18 | QColor color() const { return mColor ; } |
18 | signals: | 19 | signals: |
19 | void changed(const QColor &); | 20 | void changed(const QColor &); |
21 | void changedID(const QColor &, int id); | ||
20 | private slots: | 22 | private slots: |
21 | void edit(); | 23 | void edit(); |
22 | private: | 24 | private: |
23 | QColor mColor; | 25 | QColor mColor; |
26 | int id; | ||
24 | }; | 27 | }; |
25 | 28 | ||
26 | #endif | 29 | #endif |