diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-04-10 15:06:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-19 04:55:38 +0200 |
commit | 83c8ca0ab459dbf7594abf90fdf4e83f9f121a74 (patch) | |
tree | 004ff5c5c0b68e428cb406eced1fe8b7462baf65 /src/quick/items/qquicktextnode_p.h | |
parent | 13af00d382e340341db88c969ee48e3b83e53277 (diff) |
Don't create glyphs for truncated text.
Instead of positioning truncated lines far out of the way where they
won't be seen, simply skip them when creating the glyph node.
Change-Id: I83bd8f76619d822fb22ec2ebd8c1e45c45b8b990
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktextnode_p.h')
-rw-r--r-- | src/quick/items/qquicktextnode_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextnode_p.h b/src/quick/items/qquicktextnode_p.h index 2ecd20d933..9e7573104b 100644 --- a/src/quick/items/qquicktextnode_p.h +++ b/src/quick/items/qquicktextnode_p.h @@ -84,7 +84,8 @@ public: QQuickText::TextStyle style = QQuickText::Normal, const QColor &styleColor = QColor(), const QColor &anchorColor = QColor(), const QColor &selectionColor = QColor(), const QColor &selectedTextColor = QColor(), - int selectionStart = -1, int selectionEnd = -1); + int selectionStart = -1, int selectionEnd = -1, + int lineStart = 0, int lineCount = -1); void addTextDocument(const QPointF &position, QTextDocument *textDocument, const QColor &color = QColor(), QQuickText::TextStyle style = QQuickText::Normal, const QColor &styleColor = QColor(), const QColor &anchorColor = QColor(), |