diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-04-16 15:59:49 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-04-16 15:59:49 (GMT) |
commit | fc1e97177f6ff9369fc6b14c66e5d0526741d3e7 (patch) | |
tree | e725ed79f452626ef18e5d7ba74d8f0056415734 /src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | |
parent | 33957a2fee921742769e89ce6af348d182d183b2 (diff) | |
download | Qt-fc1e97177f6ff9369fc6b14c66e5d0526741d3e7.zip Qt-fc1e97177f6ff9369fc6b14c66e5d0526741d3e7.tar.gz Qt-fc1e97177f6ff9369fc6b14c66e5d0526741d3e7.tar.bz2 |
Make fillRect() with a QBrush(Qt::NoBrush) a noop
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index f1918c8..80f0b1d 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -804,6 +804,9 @@ void QGL2PaintEngineEx::fill(const QVectorPath &path, const QBrush &brush) { Q_D(QGL2PaintEngineEx); + if (brush.style() == Qt::NoBrush) + return; + d->setBrush(&brush); d->fill(path); d->setBrush(&(state()->brush)); // reset back to the state's brush |