diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-10-11 16:37:19 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-11-26 07:04:19 +0000 |
commit | c2bf0cac957b1e7866538201433f3cd38313ab7f (patch) | |
tree | 2c3886794b38bce4eca79ba1275c3970c141927f | |
parent | e04aaf188c735b775dc4483099ec61a9372b0fa8 (diff) |
Warn when using deprecated methods
Change-Id: Id6e65d83e9279407b4b02967e4044f33d8c6ae01
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r-- | src/gui/text/qfontmetrics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qfontmetrics.h b/src/gui/text/qfontmetrics.h index ba7f695380..cbccc886fd 100644 --- a/src/gui/text/qfontmetrics.h +++ b/src/gui/text/qfontmetrics.h @@ -104,8 +104,11 @@ public: int rightBearing(QChar) const; #if QT_DEPRECATED_SINCE(5, 11) + QT_DEPRECATED_X("Use QFont::horizontalAdvance") int width(const QString &, int len = -1) const; + QT_DEPRECATED_X("Use QFont::horizontalAdvance") int width(const QString &, int len, int flags) const; + QT_DEPRECATED_X("Use QFont::horizontalAdvance") int width(QChar) const; #endif |