-rw-r--r-- | microkde/kcolorbutton.cpp | 7 | ||||
-rw-r--r-- | microkde/kcolorbutton.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/microkde/kcolorbutton.cpp b/microkde/kcolorbutton.cpp index 96dc256..197bea2 100644 --- a/microkde/kcolorbutton.cpp +++ b/microkde/kcolorbutton.cpp @@ -18,2 +18,3 @@ void KColorButton:: edit() emit changed ( mColor ); + emit changedID ( mColor, id ); } @@ -27,2 +28,3 @@ void KColorButton:: edit() emit changed ( mColor ); + emit changedID ( mColor, id ); } @@ -37,2 +39,3 @@ KColorButton::KColorButton( QWidget *p ):QPushButton( p ) setFixedSize( size,size ); + int id = 0; connect ( this, SIGNAL( clicked() ), this ,SLOT (edit() )); @@ -40,2 +43,6 @@ KColorButton::KColorButton( QWidget *p ):QPushButton( p ) } +void KColorButton::setID ( int i) +{ + id = i; +} void KColorButton::setColor ( const QColor & c) diff --git a/microkde/kcolorbutton.h b/microkde/kcolorbutton.h index 88b3774..983771b 100644 --- a/microkde/kcolorbutton.h +++ b/microkde/kcolorbutton.h @@ -16,2 +16,3 @@ public: void setColor ( const QColor &); + void setID ( int i) ; QColor color() const { return mColor ; } @@ -19,2 +20,3 @@ public: void changed(const QColor &); + void changedID(const QColor &, int id); private slots: @@ -23,2 +25,3 @@ private slots: QColor mColor; + int id; }; |