remove redundant QFont::key() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-01 09:49:07 +03:00
parent bc0aceca02
commit 163265d5d6
2 changed files with 2 additions and 15 deletions

View file

@ -1163,18 +1163,6 @@ static inline void set_font_bits(quint8 bits, QFontPrivate *f)
}
#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.
\sa QMap
*/
QString QFont::key() const
{
return toString();
}
/*!
Returns a description of the font. The description is a
comma-separated list of the attributes, perfectly suited for use
@ -1216,8 +1204,9 @@ bool QFont::fromString(const QString &descrip)
}
setFamily(l[0]);
if (count > 1)
if (count > 1) {
setStyleName(l[1]);
}
if (count > 2) {
const double l2 = l[2].toDouble();
if (l2 > 0.0) {

View file

@ -157,8 +157,6 @@ public:
FT_Face freetypeFace() const;
#endif
QString key() const;
QString toString() const;
bool fromString(const QString &);