proper filling when using Qt::TexturePattern

fix for using both Qt::OpaqueMode and
Qt::TexturePatter for filling

Task-number: QTBUG-19202
Change-Id: Ia92363cacaa51140fe78b542d9768aead81868ff
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
This commit is contained in:
Konrad Grochowski 2012-06-19 17:15:11 +02:00 committed by Qt by Nokia
parent 5281cba808
commit b0a6c521ab

View File

@ -80,7 +80,7 @@ void QEmulationPaintEngine::fill(const QVectorPath &path, const QBrush &brush)
if (s->bgMode == Qt::OpaqueMode) {
Qt::BrushStyle style = brush.style();
if (style >= Qt::Dense1Pattern && style <= Qt::DiagCrossPattern)
if ((style >= Qt::Dense1Pattern && style <= Qt::DiagCrossPattern) || (style == Qt::TexturePattern ))
real_engine->fill(path, s->bgBrush);
}