Go to file
Jiang Jiang 0f7cba14f6 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
(cherry picked from commit c480dd641f5d22d1ee72cb27bf39e24c6df65658)
2011-04-29 11:02:23 +02:00
bin Introduced the QT.<module>.plugins variable to module profiles. 2011-04-27 12:06:02 +02:00
config.profiles Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
config.tests Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
demos Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
dist Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
doc/src Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
examples Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs QT += declarative implies += opengl too, so hardcode it to make stuff work 2011-04-28 15:07:51 +02:00
qmake Make qmake respect <subdir>.CONFIG = no_default_install 2011-04-27 12:05:58 +02:00
src Support visual cursor movement for BIDI text 2011-04-29 11:02:23 +02:00
tests Support visual cursor movement for BIDI text 2011-04-29 11:02:23 +02:00
tools Remove hardcoded modules in configure and QT_CONFIG 2011-04-27 12:05:53 +02:00
util Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitignore Add .gitignore to each module 2011-04-27 12:06:07 +02:00
configure Build examples and demos in qtbase 2011-04-27 12:05:59 +02:00
configure.exe New configure.exe binary 2011-04-27 12:05:53 +02:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Fixed "make check" target for qtbase. 2011-04-27 12:06:00 +02:00
sync.profile Move uitools from QtTools to QtBase 2011-04-27 12:05:52 +02:00