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:
Thiago Macieira 2022-06-16 15:31:49 -07:00
parent 5e60b2ab16
commit 68a1f9582b

View File

@ -784,7 +784,7 @@ QFont &QFont::operator=(const QFont &font)
*/
QString QFont::family() const
{
return d->request.families.isEmpty() ? QString() : d->request.families.first();
return d->request.families.isEmpty() ? QString() : d->request.families.constFirst();
}
/*!