From 8f65160c44253ccabfcd4029f0947534c6ba8612 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sat, 26 Jan 2019 21:44:19 +0100 Subject: QtGui/Text: mark obsolete functions as deprecated Mark some long obsolete functions as deprecated so the can be removed with Qt6: - QTextFormat::setAnchorName()/anchorName() - QTextList::isEmpty() Change-Id: Ic1f5317980d116c846def3645d2a6cd61ba8679d Reviewed-by: Friedemann Kleint Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qtextformat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/text/qtextformat.h') diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index f292feabe8..80d8e82694 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -552,9 +552,13 @@ public: inline QString anchorHref() const { return stringProperty(AnchorHref); } +#if QT_DEPRECATED_SINCE(5, 13) + QT_DEPRECATED_X("Use setAnchorNames() instead") inline void setAnchorName(const QString &name) { setAnchorNames(QStringList(name)); } + QT_DEPRECATED_X("Use anchorNames() instead") QString anchorName() const; +#endif inline void setAnchorNames(const QStringList &names) { setProperty(AnchorName, names); } -- cgit v1.2.3