From bf16940d33208409d17b76bceb6d27b77675bea6 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Fri, 20 Feb 2015 07:57:29 -0600 Subject: Allow QDistanceField to be directly constructed from a QPainterPath. Enables optimization in the case of an already existing QPainterPath. Change-Id: I7f038673ce245ea19e400e6d2c728f07cb55e366 Task-number: QTBUG-42853 Reviewed-by: Lars Knoll Reviewed-by: Yoann Lopes Reviewed-by: Gunnar Sletta --- src/gui/text/qdistancefield_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/text/qdistancefield_p.h') diff --git a/src/gui/text/qdistancefield_p.h b/src/gui/text/qdistancefield_p.h index 95bb3b11c7..c376e93abe 100644 --- a/src/gui/text/qdistancefield_p.h +++ b/src/gui/text/qdistancefield_p.h @@ -97,6 +97,7 @@ public: QDistanceField(int width, int height); QDistanceField(const QRawFont &font, glyph_t glyph, bool doubleResolution = false); QDistanceField(QFontEngine *fontEngine, glyph_t glyph, bool doubleResolution = false); + QDistanceField(const QPainterPath &path, glyph_t glyph, bool doubleResolution = false); QDistanceField(const QDistanceField &other); bool isNull() const; -- cgit v1.2.3