Merge "Support family names that end/start with space"
This commit is contained in:
commit
3102d611bd
@ -304,10 +304,12 @@ void QFontDatabasePrivate::invalidate()
|
|||||||
emit static_cast<QGuiApplication *>(QCoreApplication::instance())->fontDatabaseChanged();
|
emit static_cast<QGuiApplication *>(QCoreApplication::instance())->fontDatabaseChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
QtFontFamily *QFontDatabasePrivate::family(const QString &f, FamilyRequestFlags flags)
|
QtFontFamily *QFontDatabasePrivate::family(const QString &family, FamilyRequestFlags flags)
|
||||||
{
|
{
|
||||||
QtFontFamily *fam = nullptr;
|
QtFontFamily *fam = nullptr;
|
||||||
|
|
||||||
|
const QString f = family.trimmed();
|
||||||
|
|
||||||
int low = 0;
|
int low = 0;
|
||||||
int high = count;
|
int high = count;
|
||||||
int pos = count / 2;
|
int pos = count / 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user