Update for glyphMargin() migration in qtbase
authorJiang Jiang <jiang.jiang@nokia.com>
Mon, 23 Jan 2012 14:17:21 +0000 (15:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 20:02:17 +0000 (21:02 +0100)
glyphMargin() has been moved from QTextureGlyphCache to QFontEngine
in qtbase. Update private API usage for that.

Change-Id: Ia74c1387eaad4cb961ca0fe36905254edb351258
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/quick/scenegraph/qsgdefaultglyphnode_p.cpp

index 790de06..d99ea2b 100644 (file)
@@ -195,7 +195,7 @@ void QSGTextMaskMaterial::populate(const QPointF &p,
                     fixedPointPositions.data());
     cache->fillInPendingGlyphs();
 
-    int margin = cache->glyphMargin();
+    int margin = fontD->fontEngine->glyphMargin(cache->cacheType());
 
     Q_ASSERT(geometry->indexType() == GL_UNSIGNED_SHORT);
     geometry->allocate(glyphIndexes.size() * 4, glyphIndexes.size() * 6);