OSDN Git Service

remove unused QPainterPrivate::drawOpaqueBackground() method
authorIvailo Monev <xakepa10@gmail.com>
Tue, 7 Dec 2021 13:57:41 +0000 (15:57 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 7 Dec 2021 13:57:41 +0000 (15:57 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/painting/qpainter.cpp
src/gui/painting/qpainter_p.h

index 6782b53..86f5260 100644 (file)
@@ -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
index 101f731..c43aadc 100644 (file)
@@ -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();