Hide the default cursor if a cursor item is available.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 1 Jun 2012 01:47:12 +0000 (11:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 01:22:18 +0000 (03:22 +0200)
Change-Id: I9ef3350a60ddd355ab588c9cfb3256004ee4493e
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextinput.cpp

index 873cdd4..7589d1c 100644 (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();