OSDN Git Service

remove deprecated QGraphicsEffect::sourceIsPixmap() method
authorIvailo Monev <xakepa10@gmail.com>
Tue, 24 Aug 2021 00:33:36 +0000 (03:33 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 24 Aug 2021 00:33:36 +0000 (03:33 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/effects/qgraphicseffect.cpp
src/gui/effects/qgraphicseffect.h

index 05d6813..a540e2f 100644 (file)
@@ -222,19 +222,6 @@ void QGraphicsEffectSource::update()
 }
 
 /*!
-    Returns true if the source effectively is a pixmap, e.g., a
-    QGraphicsPixmapItem.
-
-    This function is useful for optimization purposes. For instance, there's no
-    point in drawing the source in device coordinates to avoid pixmap scaling
-    if this function returns true - the source pixmap will be scaled anyways.
-*/
-bool QGraphicsEffect::sourceIsPixmap() const
-{
-    return false;
-}
-
-/*!
     Returns a pixmap with the source painted into it.
 
     The \a system specifies which coordinate system to be used for the source.
index fa1bb6d..faa4f48 100644 (file)
@@ -82,7 +82,6 @@ protected:
     virtual void sourceChanged(ChangeFlags flags);
     void updateBoundingRect();
 
-    QT_DEPRECATED bool sourceIsPixmap() const;
     QRectF sourceBoundingRect(Qt::CoordinateSystem system = Qt::LogicalCoordinates) const;
     void drawSource(QPainter *painter);
     QPixmap sourcePixmap(Qt::CoordinateSystem system = Qt::LogicalCoordinates,