diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-08-04 09:14:30 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-08-04 10:43:34 +0200 |
commit | 5683a6f6f30e65c272c1194f31395161bde229e4 (patch) | |
tree | a4432011ade11e353a4da732dd2ea3e83f58c05e /src/gui/image/qimage.h | |
parent | 0d6a0f1371d899c4105bc4383550ca1cb6b132b2 (diff) |
QImage::fill() overloads that take QColor and Qt::GlobalColor
This will break source compatibility in some cases, but only
when the user has a bug in the first place, so this is preferable
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r-- | src/gui/image/qimage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h index 896061ffc0..f37dcf2755 100644 --- a/src/gui/image/qimage.h +++ b/src/gui/image/qimage.h @@ -210,6 +210,9 @@ public: void setColorTable(const QVector<QRgb> colors); void fill(uint pixel); + void fill(const QColor &color); + void fill(Qt::GlobalColor color); + bool hasAlphaChannel() const; void setAlphaChannel(const QImage &alphaChannel); |