QFont: don't detach the families list in family()
Pick-to: 6.3 6.4 Change-Id: Id0fb9ab0089845ee8843fffd16f93a8b9306b89b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
5e60b2ab16
commit
68a1f9582b
@ -784,7 +784,7 @@ QFont &QFont::operator=(const QFont &font)
|
|||||||
*/
|
*/
|
||||||
QString QFont::family() const
|
QString QFont::family() const
|
||||||
{
|
{
|
||||||
return d->request.families.isEmpty() ? QString() : d->request.families.first();
|
return d->request.families.isEmpty() ? QString() : d->request.families.constFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user