[QCoreTextFontDatabase] Minor clean-up
Change-Id: I4579d4c4a516cc458aa7ddd8aca385b4ae21879b Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
9a3754c570
commit
c4aea1ea20
@ -348,11 +348,7 @@ void QCoreTextFontDatabase::populateFromDescriptor(CTFontDescriptorRef font)
|
||||
{
|
||||
FontDescription fd;
|
||||
getFontDescription(font, &fd);
|
||||
populateFromFontDescription(font, fd);
|
||||
}
|
||||
|
||||
void QCoreTextFontDatabase::populateFromFontDescription(CTFontDescriptorRef font, const FontDescription &fd)
|
||||
{
|
||||
CFRetain(font);
|
||||
QPlatformFontDatabase::registerFont(fd.familyName, fd.styleName, fd.foundryName, fd.weight, fd.style, fd.stretch,
|
||||
true /* antialiased */, true /* scalable */,
|
||||
|
@ -70,8 +70,6 @@ Q_DECLARE_METATYPE(ATSFontContainerRef);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
struct FontDescription;
|
||||
|
||||
class QCoreTextFontDatabase : public QPlatformFontDatabase
|
||||
{
|
||||
public:
|
||||
@ -96,7 +94,6 @@ public:
|
||||
|
||||
private:
|
||||
void populateFromDescriptor(CTFontDescriptorRef font);
|
||||
void populateFromFontDescription(CTFontDescriptorRef font, const FontDescription &fd);
|
||||
|
||||
mutable QString defaultFontName;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user