QtGui: Remove unused brushes [-Wclazy-unused-non-trivial-variable]
Change-Id: If7e5340ec8acdfd70ea919286da5940db7a4def9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
19d7bd3d63
commit
f5ba938e17
@ -856,7 +856,6 @@ void QPdfEngine::drawRects (const QRectF *rects, int rectCount)
|
||||
if (!d->hasPen && !d->hasBrush)
|
||||
return;
|
||||
|
||||
QBrush penBrush = d->pen.brush();
|
||||
if (d->simplePen || !d->hasPen) {
|
||||
// draw strokes natively in this case for better output
|
||||
if(!d->simplePen && !d->stroker.matrix.isIdentity())
|
||||
|
@ -1138,8 +1138,6 @@ void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<FormatRang
|
||||
QPainterPath textDoneRegion;
|
||||
for (int i = 0; i < selections.size(); ++i) {
|
||||
FormatRange selection = selections.at(i);
|
||||
const QBrush bg = selection.format.background();
|
||||
|
||||
QPainterPath region;
|
||||
region.setFillRule(Qt::WindingFill);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user