summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpicture.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-06-19 12:53:25 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-06-20 16:10:30 +0000
commit4de40514066e7e31fe02c87afaf0863d6928391f (patch)
treea460bdb7c6ce27021ae0a1121721d8c17d1f4c01 /src/gui/image/qpicture.h
parent3d77c3629c2f0f8ff0950577bc5d9dfb938cfbf0 (diff)
QPicture: mark deprecated functions with the QT_DEPRECATED macros
These functions should never be used, they've been deprecated since Qt 5.0. Change-Id: I71744eba3ff3b94487dd040ddd6af4fb11f382b2 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/image/qpicture.h')
-rw-r--r--src/gui/image/qpicture.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/image/qpicture.h b/src/gui/image/qpicture.h
index 8da11caee4..2d505d1d06 100644
--- a/src/gui/image/qpicture.h
+++ b/src/gui/image/qpicture.h
@@ -90,11 +90,13 @@ public:
friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &in, const QPicture &p);
friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &in, QPicture &p);
- static const char* pictureFormat(const QString &fileName);
- static QList<QByteArray> inputFormats();
- static QList<QByteArray> outputFormats();
- static QStringList inputFormatList();
- static QStringList outputFormatList();
+#if QT_DEPRECATED_SINCE(5, 0)
+ static QT_DEPRECATED const char* pictureFormat(const QString &fileName);
+ static QT_DEPRECATED QList<QByteArray> inputFormats();
+ static QT_DEPRECATED QList<QByteArray> outputFormats();
+ static QT_DEPRECATED QStringList inputFormatList();
+ static QT_DEPRECATED QStringList outputFormatList();
+#endif // QT_DEPRECATED_SINCE(5, 0)
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;