diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-03-07 17:42:49 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-08 00:41:06 +0100 |
commit | 5d0f90d480924c75fd4120b90efd5501307bee0b (patch) | |
tree | 09880ef1a4f06d48a470af5bf8cd95f9aa0e2f43 /src | |
parent | 70966df1be02dd94ecf9a122ff9e4976245aeb92 (diff) |
Fix selected text highlight in TextEdit.
The call to QQuickTextNode::addTextDocument() omitted the anchor
color argument meaning every subsquent argument was off by one and
the selection end was always the default of -1.
Change-Id: Iac3165e7aa95a3db935a19e54144d3967a3e6e38
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquicktextedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextedit.cpp b/src/quick/items/qquicktextedit.cpp index a9bff73bd9..3db5f5a7a3 100644 --- a/src/quick/items/qquicktextedit.cpp +++ b/src/quick/items/qquicktextedit.cpp @@ -1626,7 +1626,7 @@ QSGNode *QQuickTextEdit::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData * QRectF bounds = boundingRect(); node->addTextDocument(bounds.topLeft(), d->document, d->color, QQuickText::Normal, QColor(), - d->selectionColor, d->selectedTextColor, selectionStart(), + QColor(), d->selectionColor, d->selectedTextColor, selectionStart(), selectionEnd() - 1); // selectionEnd() returns first char after // selection |