Skip to content
Permalink
Browse files

update QgsColorButton after setting a new color

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6254 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 15, 2006
1 parent 8bccad4 commit 41d9e3641ca9baa626533e55d6dbda0d7b792ed7
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/gui/qgscolorbutton.cpp
  2. +1 −1 src/gui/qgscolorbutton.h
@@ -53,3 +53,9 @@ void QgsColorButton::paintEvent(QPaintEvent *e)
p.fillRect(r, mColor);
}
}

void QgsColorButton::setColor(const QColor &color)
{
mColor = color;
update();
}
@@ -24,7 +24,7 @@ class QgsColorButton: public QToolButton
QgsColorButton(QWidget *parent = 0);
~QgsColorButton();

void setColor(const QColor &color) { mColor = color; }
void setColor(const QColor &color);
QColor color() const { return mColor; }

protected:

0 comments on commit 41d9e36

Please sign in to comment.
You can’t perform that action at this time.