Fix the build of -qt-freetype
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 6 Jan 2012 16:55:55 +0000 (14:55 -0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Mar 2012 17:59:45 +0000 (18:59 +0100)
The symbol must be exported from QtGui for the plugins to be able to
see it.

Also, fix the build in namespaced case: cannot use extern in
QtPlatformSupport because it's not compiled into the Qt namespace.

Change-Id: I029533f3524e3cbf6c87aed79c1f2e7b55aebb9b
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/text/qfontengine_ft_p.h
src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp

index 83b5168..2add894 100644 (file)
@@ -364,6 +364,7 @@ inline QFontEngineFT::Glyph *QFontEngineFT::QGlyphSet::getGlyph(glyph_t index, Q
     return glyph_data.value(GlyphAndSubPixelPosition(index, subPixelPosition));
 }
 
+extern Q_GUI_EXPORT FT_Library qt_getFreetype();
 
 QT_END_NAMESPACE
 
index 7650d77..279a1fb 100644 (file)
@@ -670,7 +670,6 @@ static FcPattern *queryFont(const FcChar8 *file, const QByteArray &data, int id,
     if (data.isEmpty())
         return FcFreeTypeQuery(file, id, blanks, count);
 
-    extern FT_Library qt_getFreetype();
     FT_Library lib = qt_getFreetype();
 
     FcPattern *pattern = 0;