OSDN Git Service

remove unused and internal QFontInfo methods
authorIvailo Monev <xakepa10@gmail.com>
Thu, 27 Jan 2022 17:24:24 +0000 (17:24 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 27 Jan 2022 17:24:24 +0000 (17:24 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/text/qfont.cpp
src/gui/text/qfontinfo.h

index 84f1ebe..aed8f09 100644 (file)
@@ -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()
index 6ef5734..a221317 100644 (file)
@@ -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;