From a648afc427ae2b7f238e5249d976a720cc1af8ef Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 7 Dec 2021 15:57:41 +0200 Subject: [PATCH] remove unused QPainterPrivate::drawOpaqueBackground() method Signed-off-by: Ivailo Monev --- src/gui/painting/qpainter.cpp | 19 ------------------- src/gui/painting/qpainter_p.h | 1 - 2 files changed, 20 deletions(-) diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 6782b53f8..86f5260cd 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -384,25 +384,6 @@ void QPainterPrivate::draw_helper(const QPainterPath &originalPath) q->restore(); } -void QPainterPrivate::drawOpaqueBackground(const QPainterPath &path) -{ - Q_Q(QPainter); - - q->setBackgroundMode(Qt::TransparentMode); - - if (state->brush.style() != Qt::NoBrush) { - q->fillPath(path, state->bgBrush.color()); - q->fillPath(path, state->brush); - } - - if (state->pen.style() != Qt::NoPen) { - q->strokePath(path, QPen(state->bgBrush.color(), state->pen.width())); - q->strokePath(path, state->pen); - } - - q->setBackgroundMode(Qt::OpaqueMode); -} - static inline QBrush stretchGradientToUserSpace(const QBrush &brush, const QRectF &boundingRect) { Q_ASSERT(brush.style() >= Qt::LinearGradientPattern diff --git a/src/gui/painting/qpainter_p.h b/src/gui/painting/qpainter_p.h index 101f73146..c43aadc54 100644 --- a/src/gui/painting/qpainter_p.h +++ b/src/gui/painting/qpainter_p.h @@ -174,7 +174,6 @@ public: void draw_helper(const QPainterPath &path); void drawStretchedGradient(const QPainterPath &path); - void drawOpaqueBackground(const QPainterPath &path); void updateMatrix(); void updateInvMatrix(); -- 2.11.0