From: Ivailo Monev Date: Thu, 27 Jan 2022 17:24:24 +0000 (+0000) Subject: remove unused and internal QFontInfo methods X-Git-Tag: 4.12.0~1071^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5505d2fc69202638d7560bcf59dc68d86bae9ba2;p=kde%2FKatie.git remove unused and internal QFontInfo methods Signed-off-by: Ivailo Monev --- diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 84f1ebea6..aed8f092c 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -1543,49 +1543,6 @@ int QFontInfo::weight() const */ /*! - Returns the underline value of the matched window system font. - - \sa QFont::underline() - - \internal - - Here we read the underline flag directly from the QFont. - This is OK for X11 and for Windows because we always get what we want. -*/ -bool QFontInfo::underline() const -{ - return d->underline; -} - -/*! - Returns the overline value of the matched window system font. - - \sa QFont::overline() - - \internal - - Here we read the overline flag directly from the QFont. - This is OK for X11 and for Windows because we always get what we want. -*/ -bool QFontInfo::overline() const -{ - return d->overline; -} - -/*! - Returns the strikeout value of the matched window system font. - - \sa QFont::strikeOut() - - \internal Here we read the strikeOut flag directly from the QFont. - This is OK for X11 and for Windows because we always get what we want. -*/ -bool QFontInfo::strikeOut() const -{ - return d->strikeOut; -} - -/*! Returns the fixed pitch value of the matched window system font. \sa QFont::fixedPitch() diff --git a/src/gui/text/qfontinfo.h b/src/gui/text/qfontinfo.h index 6ef57347d..a221317d7 100644 --- a/src/gui/text/qfontinfo.h +++ b/src/gui/text/qfontinfo.h @@ -47,9 +47,6 @@ public: QFont::Style style() const; int weight() const; inline bool bold() const { return weight() > QFont::Normal; } - bool underline() const; - bool overline() const; - bool strikeOut() const; bool fixedPitch() const; bool exactMatch() const;