Hide the default cursor if a cursor item is available.

Change-Id: I9ef3350a60ddd355ab588c9cfb3256004ee4493e
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
This commit is contained in:
Andrew den Exter 2012-06-01 11:47:12 +10:00 committed by Qt by Nokia
parent 5b83c3c27f
commit 5e6d1afb12
1 changed files with 1 additions and 1 deletions

View File

@ -1723,7 +1723,7 @@ QSGNode *QQuickTextInput::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
if (cursorNode != 0 && !isReadOnly()) {
cursorNode->setRect(cursorRectangle());
if (!d->cursorVisible || (!d->m_blinkStatus && d->m_blinkPeriod > 0)) {
if (!d->cursorVisible || d->cursorItem || (!d->m_blinkStatus && d->m_blinkPeriod > 0)) {
d->hideCursor();
} else {
d->showCursor();