mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
style argument of QFontDatabase::pointSizes() is optional
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a27cf3c38f
commit
d622607fb3
1 changed files with 2 additions and 3 deletions
|
@ -535,7 +535,6 @@ bool QFontDatabase::isScalable(const QString &family, const QString &style) con
|
|||
return isSmoothlyScalable(family, style);
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\fn QList<int> QFontDatabase::pointSizes(const QString &family, const QString &style)
|
||||
Returns a list of the point sizes available for the font with the
|
||||
|
@ -554,7 +553,7 @@ QList<int> QFontDatabase::pointSizes(const QString &family, const QString &style
|
|||
const QtFontFamily &fontfamily = db->at(i);
|
||||
if (fontfamily.family.compare(parsedfamily, Qt::CaseInsensitive) != 0
|
||||
|| (!parsedfoundry.isEmpty() && fontfamily.foundry.compare(parsedfoundry, Qt::CaseInsensitive) != 0)
|
||||
|| !isStyleMatch(fontfamily.style, style)) {
|
||||
|| (!style.isEmpty() && !isStyleMatch(fontfamily.style, style))) {
|
||||
continue;
|
||||
}
|
||||
result.append(fontfamily.pointsize);
|
||||
|
|
Loading…
Add table
Reference in a new issue