summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-06 11:43:40 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-06 11:43:40 (GMT)
commitddc5383e9ab596d42c0f481c0916234c238e8bb5 (patch)
treefad81be7e6d008bb8f6a446dde0e463e847f6c4f /src/gui
parent1e77901a50858cf9243e6d813303d8ce013e4d31 (diff)
downloadQt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.zip
Qt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.tar.gz
Qt-ddc5383e9ab596d42c0f481c0916234c238e8bb5.tar.bz2
don't do unessesary brush comparrisons
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpainter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 09a4563..4c13d3e 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -3890,14 +3890,6 @@ void QPainter::setBrush(const QBrush &brush)
return;
}
- Qt::BrushStyle currentStyle = d->state->brush.style();
- if (currentStyle == brush.style()) {
- if (currentStyle == Qt::NoBrush
- || (currentStyle == Qt::SolidPattern
- && d->state->brush.color() == brush.color()))
- return;
- }
-
d->state->brush = brush;
d->state->dirtyFlags |= QPaintEngine::DirtyBrush;
}