summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qrawfont.cpp
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-12-15 14:11:45 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-04-19 08:15:05 (GMT)
commitc480dd641f5d22d1ee72cb27bf39e24c6df65658 (patch)
tree8945d11e0aa6f1aadd12b77e41d6a4af90df0056 /src/gui/text/qrawfont.cpp
parente004701bd7ba9e4a7cd5ac1bf784829feae16cae (diff)
downloadQt-c480dd641f5d22d1ee72cb27bf39e24c6df65658.zip
Qt-c480dd641f5d22d1ee72cb27bf39e24c6df65658.tar.gz
Qt-c480dd641f5d22d1ee72cb27bf39e24c6df65658.tar.bz2
Support visual cursor movement for BIDI text
Bidi input can in some contexts be more intuitive if the cursor works in visual way: pressing left arrow key always make cursor move one character to the left regardless the language of text, pressing right arrow key always make cursor move to the right. It is also the behavior of Mac OS X. Based on the above reason and requests from Symbian we implemented this support for visual movement in BIDI text. 3 public properties are added to QTextDocument, QTextLayout and QLineEdit respectively: - QTextDocument::defaultCursorMoveStyle can be used to control the cursor behavior in all widgets based on QTextDocument, like QTextEdit, QPlainTextEdit, etc. When set to QTextCursor:: Visual, it will enable visual movement for all the cursors in the corresponding text edit. Default is QTextCursor::Logical. - QTextLayout::cursorMoveStyle is used for low-level cursor manipulation. When set to Visual, it will enable visual movement behavior for all the cursor related methods, including cursorToX, xToCursor and drawCursor. Default is Logical. - QLineEdit::cursorMoveStyle is used to control cursor movement behavior in QLineEdit. Default is Logical.: Task-number: QTBUG-13859 Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qrawfont.cpp')
0 files changed, 0 insertions, 0 deletions