summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-05 21:23:44 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-06 09:54:17 +0200
commit660b38bb2c4a7650ed04dc0f2feb2bf93d4e6739 (patch)
treea55842c2d648151560354a0fccd45efbfeddb681 /src/gui/painting/qpainter.h
parentd39fefc0ebc8481dd695be031d9479a6ee397612 (diff)
Remove a bunch of deprecated members from src/gui/painting classes
Also remove dead code that isn't compiled anymore in Qt 6 builds. Change-Id: I7a7ae35e61fb2ad9cc21180fb7224357ade1505f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter.h')
-rw-r--r--src/gui/painting/qpainter.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gui/painting/qpainter.h b/src/gui/painting/qpainter.h
index 52de8b6839..4d2efb1e67 100644
--- a/src/gui/painting/qpainter.h
+++ b/src/gui/painting/qpainter.h
@@ -87,10 +87,6 @@ public:
Antialiasing = 0x01,
TextAntialiasing = 0x02,
SmoothPixmapTransform = 0x04,
-#if QT_DEPRECATED_SINCE(5, 14)
- HighQualityAntialiasing Q_DECL_ENUMERATOR_DEPRECATED_X("Use Antialiasing instead") = 0x08,
- NonCosmeticDefaultPen Q_DECL_ENUMERATOR_DEPRECATED_X("Default pen is non-cosmetic now") = 0x10,
-#endif
Qt4CompatiblePainting = 0x20,
LosslessImageRendering = 0x40,
};
@@ -132,11 +128,6 @@ public:
bool end();
bool isActive() const;
-#if QT_DEPRECATED_SINCE(5, 13)
- QT_DEPRECATED_X("Use begin(QPaintDevice*) instead")
- void initFrom(const QPaintDevice *device);
-#endif
-
enum CompositionMode {
CompositionMode_SourceOver,
CompositionMode_DestinationOver,
@@ -346,15 +337,6 @@ public:
inline void drawRoundedRect(const QRect &rect, qreal xRadius, qreal yRadius,
Qt::SizeMode mode = Qt::AbsoluteSize);
-#if QT_DEPRECATED_SINCE(5, 13)
- QT_DEPRECATED_X("Use drawRoundedRect(..., Qt::RelativeSize) instead")
- void drawRoundRect(const QRectF &r, int xround = 25, int yround = 25);
- QT_DEPRECATED_X("Use drawRoundedRect(..., Qt::RelativeSize) instead")
- void drawRoundRect(int x, int y, int w, int h, int = 25, int = 25);
- QT_DEPRECATED_X("Use drawRoundedRect(..., Qt::RelativeSize) instead")
- void drawRoundRect(const QRect &r, int xround = 25, int yround = 25);
-#endif
-
void drawTiledPixmap(const QRectF &rect, const QPixmap &pm, const QPointF &offset = QPointF());
inline void drawTiledPixmap(int x, int y, int w, int h, const QPixmap &, int sx=0, int sy=0);
inline void drawTiledPixmap(const QRect &, const QPixmap &, const QPoint & = QPoint());
@@ -460,16 +442,6 @@ public:
QPaintEngine *paintEngine() const;
-#if QT_DEPRECATED_SINCE(5, 13)
- QT_DEPRECATED_X("Use QWidget::render() instead")
- static void setRedirected(const QPaintDevice *device, QPaintDevice *replacement,
- const QPoint& offset = QPoint());
- QT_DEPRECATED_X("Use QWidget::render() instead")
- static QPaintDevice *redirected(const QPaintDevice *device, QPoint *offset = nullptr);
- QT_DEPRECATED_X("Use QWidget::render() instead")
- static void restoreRedirected(const QPaintDevice *device);
-#endif
-
void beginNativePainting();
void endNativePainting();