diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-12 16:14:07 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-15 18:56:20 +0200 |
commit | 2b10a192a1b892eb7d67cfb4ac5f1dd6a7f196c9 (patch) | |
tree | 868e9ab8413cf2d0110ce24f26d988ed58ac4e73 /src/gui/text/qfont.cpp | |
parent | 794150e5bda0c203a5373c3fa2f9785f9941f6dd (diff) |
Remove deprecated method from QFont, QFontMetrics, and QFontInfo
Change-Id: Ifc8fb5c5d53359b33b8abab3bbee3de61bfef539
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/text/qfont.cpp')
-rw-r--r-- | src/gui/text/qfont.cpp | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index cb87cfa09b..5972a80d51 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -1634,31 +1634,6 @@ QFont::Capitalization QFont::capitalization() const return static_cast<QFont::Capitalization> (d->capital); } -#if QT_DEPRECATED_SINCE(5, 5) -/*! - \fn void QFont::setRawMode(bool enable) - \deprecated - - If \a enable is true, turns raw mode on; otherwise turns raw mode - off. This function only has an effect under X11. - - If raw mode is enabled, Qt will search for an X font with a - complete font name matching the family name, ignoring all other - values set for the QFont. If the font name matches several fonts, - Qt will use the first font returned by X. QFontInfo \e cannot be - used to fetch information about a QFont using raw mode (it will - return the values set in the QFont for all parameters, including - the family name). - - \warning Enabling raw mode has no effect since Qt 5.0. - - \sa rawMode() -*/ -void QFont::setRawMode(bool) -{ -} -#endif - /*! Returns \c true if a window system font exactly matching the settings of this font is available. @@ -1770,21 +1745,6 @@ bool QFont::isCopyOf(const QFont & f) const return d == f.d; } -#if QT_DEPRECATED_SINCE(5, 5) -/*! - \deprecated - - Returns \c true if raw mode is used for font name matching; otherwise - returns \c false. - - \sa setRawMode() -*/ -bool QFont::rawMode() const -{ - return false; -} -#endif - /*! Returns a new QFont that has attributes copied from \a other that have not been previously set on this font. @@ -1920,14 +1880,6 @@ void QFont::removeSubstitutions(const QString &familyName) } /*! - \fn void QFont::removeSubstitution(const QString &familyName) - - \obsolete - - This function is deprecated. Use removeSubstitutions() instead. -*/ - -/*! Returns a sorted list of substituted family names. \sa insertSubstitution(), removeSubstitution(), substitute() @@ -2010,45 +1962,6 @@ static void set_extended_font_bits(quint8 bits, QFontPrivate *f) } #endif -#if QT_DEPRECATED_SINCE(5, 3) -/*! - \fn QString QFont::rawName() const - \deprecated - - Returns the name of the font within the underlying window system. - - On X11, this function will return an empty string. - - Using the return value of this function is usually \e not \e - portable. - - \sa setRawName() -*/ -QString QFont::rawName() const -{ - return QLatin1String("unknown"); -} - -/*! - \fn void QFont::setRawName(const QString &name) - \deprecated - - Sets a font by its system specific name. - - A font set with setRawName() is still a full-featured QFont. It can - be queried (for example with italic()) or modified (for example with - setItalic()) and is therefore also suitable for rendering rich text. - - If Qt's internal font database cannot resolve the raw name, the - font becomes a raw font with \a name as its family. - - \sa rawName(), setFamily() -*/ -void QFont::setRawName(const QString &) -{ -} -#endif - /*! Returns the font's key, a textual representation of a font. It is typically used as the key for a cache or dictionary of fonts. @@ -2180,22 +2093,6 @@ void QFont::cacheStatistics() { } -#if QT_DEPRECATED_SINCE(5, 13) -/*! - \fn QString QFont::lastResortFamily() const - - \obsolete - - This function is deprecated and is not in use by the font - selection algorithm in Qt 5. It always returns "helvetica". - - \sa lastResortFont() -*/ -QString QFont::lastResortFamily() const -{ - return QStringLiteral("helvetica"); -} -#endif extern QStringList qt_fallbacksForFamily(const QString &family, QFont::Style style, QFont::StyleHint styleHint, QChar::Script script); @@ -2217,24 +2114,6 @@ QString QFont::defaultFamily() const return QString(); } -#if QT_DEPRECATED_SINCE(5, 13) -/*! - \fn QString QFont::lastResortFont() const - - \obsolete - - Deprecated function. Since Qt 5.0, this is not used by the font selection algorithm. For - compatibility it remains in the API, but will always return the same value as lastResortFamily(). -*/ -QString QFont::lastResortFont() const -{ -QT_WARNING_PUSH -QT_WARNING_DISABLE_DEPRECATED - return lastResortFamily(); -QT_WARNING_POP -} -#endif - /*! \since 5.13 @@ -2740,25 +2619,6 @@ QFont::StyleHint QFontInfo::styleHint() const return (QFont::StyleHint) engine->fontDef.styleHint; } -#if QT_DEPRECATED_SINCE(5, 5) -/*! - \deprecated - - Returns \c true if the font is a raw mode font; otherwise returns - false. - - If it is a raw mode font, all other functions in QFontInfo will - return the same values set in the QFont, regardless of the font - actually used. - - \sa QFont::rawMode() -*/ -bool QFontInfo::rawMode() const -{ - return false; -} -#endif - /*! Returns \c true if the matched window system font is exactly the same as the one specified by the font; otherwise returns \c false. |