Skip to content

Commit

Permalink
Undeprecate QFont(QString) since this is still useful for many
Browse files Browse the repository at this point in the history
Fixes: QTBUG-95441
Pick-to: 6.2
Change-Id: Ib1f78a5a797c7b7d7eb252a7bfa11b5c003ce0d3
Reviewed-by: Eirik Aavitsland <[email protected]>
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
  • Loading branch information
AndyShawQt committed Aug 11, 2021
1 parent 58e32ae commit a68e1b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/gui/text/qfont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,7 @@ QFont::QFont()
{
}

#if QT_DEPRECATED_SINCE(6, 2)
/*!
\deprecated [6.2] Use the overload taking a QStringList instead.
Constructs a font object with the specified \a family, \a
pointSize, \a weight and \a italic settings.
Expand Down Expand Up @@ -740,7 +737,6 @@ QFont::QFont(const QString &family, int pointSize, int weight, bool italic)
d->request.weight = weight;
d->request.style = italic ? QFont::StyleItalic : QFont::StyleNormal;
}
#endif

/*!
Constructs a font object with the specified \a families, \a
Expand Down
3 changes: 0 additions & 3 deletions src/gui/text/qfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ class Q_GUI_EXPORT QFont

QFont();

#if QT_DEPRECATED_SINCE(6, 2)
QT_DEPRECATED_VERSION_X_6_2("Pass QStringList{family} or family.split(QLatin1Char(',')) instead of family")
QFont(const QString &family, int pointSize = -1, int weight = -1, bool italic = false);
#endif
explicit QFont(const QStringList &families, int pointSize = -1, int weight = -1, bool italic = false);
QFont(const QFont &font, const QPaintDevice *pd);
QFont(const QFont &font);
Expand Down

0 comments on commit a68e1b9

Please sign in to comment.