diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-23 10:40:39 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-23 10:40:39 +0200 |
commit | 098b7fb0ac84dbe65a8861cce76e036f0b9198d6 (patch) | |
tree | eaa86479874a61f8d201dc861e5b3cfd6d1a7d58 /src/declarative/items/qsgtextnode_p.h | |
parent | b35d6b475333fc2fabd0e91f1bfcf2f65aa4d4f4 (diff) |
Merge multiple lines of text into a single geometry node
Long term, we might want to have this kind of logic in the QSGGeometry
class through a grow() function or in the QSGRenderer, but we
only have this one usecase where it actually makes sense right
now, so I'm keeping it local.
Change-Id: Ibbb0dd4a6e4b587154e26ffc2a34375fbb4a571d
Diffstat (limited to 'src/declarative/items/qsgtextnode_p.h')
-rw-r--r-- | src/declarative/items/qsgtextnode_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/items/qsgtextnode_p.h b/src/declarative/items/qsgtextnode_p.h index 7a49f51dbe..e442b4cff2 100644 --- a/src/declarative/items/qsgtextnode_p.h +++ b/src/declarative/items/qsgtextnode_p.h @@ -73,7 +73,8 @@ private: void addTextBlock(const QPointF &position, QTextDocument *textDocument, const QTextBlock &block, const QColor &overrideColor, QSGText::TextStyle style = QSGText::Normal, const QColor &styleColor = QColor()); QSGGlyphNode *addGlyphs(const QPointF &position, const QGlyphRun &glyphs, const QColor &color, - QSGText::TextStyle style = QSGText::Normal, const QColor &styleColor = QColor()); + QSGText::TextStyle style = QSGText::Normal, const QColor &styleColor = QColor(), + QSGGlyphNode *node = 0); void addTextDecorations(const QPointF &position, const QRawFont &font, const QColor &color, qreal width, bool hasOverline, bool hasStrikeOut, bool hasUnderline); QSGContext *m_context; |