-rw-r--r-- | microkde/kcolorbutton.cpp | 7 |
1 files changed, 7 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) |