From fbc6b0c6e646c59d0635c1f350bbc27a232d9f2d Mon Sep 17 00:00:00 2001 From: David Boddie Date: Tue, 20 May 2025 16:46:40 +0200 Subject: [PATCH] Doc: Fix link to removed QFontMetrics::width function The function was removed but documentation still referred to it. Change-Id: I2fc1ef2ffc9cdc93e059dd1854816e6aa86dc972 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qfont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 3ae427a98bb..2ff91daf93a 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -422,7 +422,7 @@ QFontEngineData::~QFontEngineData() actually used are retrievable from a QFontInfo object. If the window system provides an exact match exactMatch() returns \c true. Use QFontMetricsF to get measurements, e.g. the pixel length of a - string using QFontMetrics::width(). + string using QFontMetrics::horizontalAdvance(). Attributes which are not specifically set will not affect the font selection algorithm, and default values will be preferred instead.