From 6eb57b2f5f00081cde8d9ef7356cf489a66caf59 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Wed, 24 Dec 2014 10:44:17 +0400 Subject: [Docs] Don't propose using deprecated QFont:: rawName()/setRawName() Change-Id: I333417b1340a56d782316c2c3628f63a504153ab Reviewed-by: Lars Knoll --- src/gui/text/qfont.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 249276bb69..515de99c9e 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -406,9 +406,6 @@ QFontEngineData::~QFontEngineData() setPointSize() has a similar effect and provides device independence. - In X11 you can set a font using its system - specific name with setRawName(). - Loading fonts can be expensive, especially on X11. QFont contains extensive optimizations to make the copying of QFont objects fast, and to cache the results of the slow window system functions it @@ -1584,10 +1581,9 @@ QFont::Capitalization QFont::capitalization() const return the values set in the QFont for all parameters, including the family name). - \warning Do not use raw mode unless you really, really need it! In - most (if not all) cases, setRawName() is a much better choice. + \warning Do not use raw mode unless you really, really need it! - \sa rawMode(), setRawName() + \sa rawMode() */ void QFont::setRawMode(bool enable) { @@ -1717,7 +1713,7 @@ bool QFont::isCopyOf(const QFont & f) const Returns \c true if raw mode is used for font name matching; otherwise returns \c false. - \sa setRawMode(), rawName() + \sa setRawMode() */ bool QFont::rawMode() const { @@ -2165,7 +2161,7 @@ QString QFont::defaultFamily() const happens. Please \l{bughowto.html}{report it as a bug} if it does, preferably with a list of the fonts you have installed. - \sa lastResortFamily(), rawName() + \sa lastResortFamily() */ QString QFont::lastResortFont() const { -- cgit v1.2.3