diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-01-26 21:44:19 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-01-28 19:37:33 +0000 |
commit | 8f65160c44253ccabfcd4029f0947534c6ba8612 (patch) | |
tree | 9ba2079986ab872839e06746aedbee2e02887ecf /src/gui/text/qtextlist.h | |
parent | 4ee8f755722bac9ad0b6fa62ddbfed8ee9943094 (diff) |
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 <Friedemann.Kleint@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/text/qtextlist.h')
-rw-r--r-- | src/gui/text/qtextlist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextlist.h b/src/gui/text/qtextlist.h index 3967787f03..cfb9f9456f 100644 --- a/src/gui/text/qtextlist.h +++ b/src/gui/text/qtextlist.h @@ -59,8 +59,11 @@ public: int count() const; +#if QT_DEPRECATED_SINCE(5, 13) + QT_DEPRECATED_X("Use count() instead") inline bool isEmpty() const { return count() == 0; } +#endif QTextBlock item(int i) const; |