[QCoreTextFontDatabase] Minor clean-up

Change-Id: I4579d4c4a516cc458aa7ddd8aca385b4ae21879b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Konstantin Ritt 2015-02-15 21:56:29 +04:00
parent 9a3754c570
commit c4aea1ea20
2 changed files with 0 additions and 7 deletions

View File

@ -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 */,

View File

@ -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;