Fix left alignment of native RTL pre-edit text.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 20 May 2011 04:22:39 +0000 (14:22 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Sep 2011 03:56:53 +0000 (05:56 +0200)
commit17330e9cd94a64afb000a63a40b2e9646520a847
tree57ed25504fbbdab2114bf2d95c8b87f33c5f0b11
parent8282beb53de059237a4240ad9615d77f676c20fb
Fix left alignment of native RTL pre-edit text.

If there is no committed text in a TextInput or TextEdit determine
if the pre-edit text is right to left before falling back to the
global keyboard settings.

Change-Id: I7e5568e936341602b8faf7be120f9a770c115f48
Task-number: QMLNG-72
Reviewed-by: Michael Brasser
Reviewed-on: http://codereview.qt.nokia.com/4176
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 files changed:
src/declarative/items/qsgtextedit.cpp
src/declarative/items/qsgtextinput.cpp
src/qtquick1/graphicsitems/qdeclarativetextedit.cpp
src/qtquick1/graphicsitems/qdeclarativetextinput.cpp
tests/auto/declarative/qsgtextedit/data/horizontalAlignment_RightToLeft.qml
tests/auto/declarative/qsgtextedit/tst_qsgtextedit.cpp
tests/auto/declarative/qsgtextinput/data/horizontalAlignment_RightToLeft.qml
tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp
tests/auto/qtquick1/qdeclarativetextedit/data/horizontalAlignment_RightToLeft.qml
tests/auto/qtquick1/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
tests/auto/qtquick1/qdeclarativetextinput/data/horizontalAlignment_RightToLeft.qml
tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp