From 1ba46c9b632731d7d7e791de2b203d0d933245b9 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 3 Feb 2020 16:18:20 +0100 Subject: Get rid of QMatrix Task-number: QTBUG-81628 Change-Id: Iad66bfdf49b9ee65558a451108c086fc40dc3884 Reviewed-by: Lars Knoll --- src/gui/painting/qpainterpath.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/gui/painting/qpainterpath.h') diff --git a/src/gui/painting/qpainterpath.h b/src/gui/painting/qpainterpath.h index 26b92dc6fa..078b665222 100644 --- a/src/gui/painting/qpainterpath.h +++ b/src/gui/painting/qpainterpath.h @@ -41,7 +41,6 @@ #define QPAINTERPATH_H #include -#include #include #include #include @@ -59,6 +58,7 @@ class QPainterPathStrokerPrivate; class QPen; class QPolygonF; class QRegion; +class QTransform; class QVectorPath; class Q_GUI_EXPORT QPainterPath @@ -176,16 +176,11 @@ public: Q_REQUIRED_RESULT QPainterPath toReversed() const; -#if QT_DEPRECATED_SINCE(5, 15) - QT_DEPRECATED_X("Use toSubpathPolygons(const QTransform &)") - QList toSubpathPolygons(const QMatrix &matrix = QMatrix()) const; - QT_DEPRECATED_X("Use toFillPolygons(const QTransform &") - QList toFillPolygons(const QMatrix &matrix = QMatrix()) const; - QT_DEPRECATED_X("Use toFillPolygon(const QTransform &)") - QPolygonF toFillPolygon(const QMatrix &matrix = QMatrix()) const; -#endif // QT_DEPRECATED_SINCE(5, 15) + QList toSubpathPolygons() const; QList toSubpathPolygons(const QTransform &matrix) const; + QList toFillPolygons() const; QList toFillPolygons(const QTransform &matrix) const; + QPolygonF toFillPolygon() const; QPolygonF toFillPolygon(const QTransform &matrix) const; int elementCount() const; @@ -238,7 +233,6 @@ private: friend class QPainterPathData; friend class QPainterPathStroker; friend class QPainterPathStrokerPrivate; - friend class QMatrix; friend class QTransform; friend class QVectorPath; friend Q_GUI_EXPORT const QVectorPath &qtVectorPathForPath(const QPainterPath &); -- cgit v1.2.3