branch | RCL_3 |
changeset 5 | d3bac044e0f0 |
parent 4 | 3b1da2848fc7 |
child 7 | 3f74d0d4af4c |
--- a/src/gui/widgets/qlinecontrol.cpp Fri Feb 19 23:40:16 2010 +0200 +++ b/src/gui/widgets/qlinecontrol.cpp Fri Mar 12 15:46:37 2010 +0200 @@ -524,8 +524,11 @@ m_textLayout.draw(painter, offset, selections, clip); if (flags & DrawCursor){ + int cursor = m_cursor; + if (m_preeditCursor != -1) + cursor += m_preeditCursor; if(!m_blinkPeriod || m_blinkStatus) - m_textLayout.drawCursor(painter, offset, m_cursor, m_cursorWidth); + m_textLayout.drawCursor(painter, offset, cursor, m_cursorWidth); } }