mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
remove redundant QFont::key() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bc0aceca02
commit
163265d5d6
2 changed files with 2 additions and 15 deletions
|
@ -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) {
|
||||
|
|
|
@ -157,8 +157,6 @@ public:
|
|||
FT_Face freetypeFace() const;
|
||||
#endif
|
||||
|
||||
QString key() const;
|
||||
|
||||
QString toString() const;
|
||||
bool fromString(const QString &);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue