Make QSGTextNode back-end for QML's TextInput and TextEdit
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 1 Jun 2011 07:45:55 +0000 (09:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 19 Aug 2011 13:15:56 +0000 (15:15 +0200)
commit1cc58fdf174656a52603af00cb40478066c5abd4
tree432054d60316a981b17655dc888805e4e5434966
parent7059861a8b8d48b5187eb46a2678f306ba288320
Make QSGTextNode back-end for QML's TextInput and TextEdit

Use the general QSGTextNode class as back-end for all text
elements in QML to make all text elements look the same and
use the same text rasterization back-end. This requires a
few rewrites in the text node to support e.g. selections.

Crashes seen with threaded renderer in TextEdit and TextInput on
Mac are also fixed by this.

Reviewed-by: Jiang Jiang
Task-number: QTBUG-18019, QTBUG-20017
Change-Id: I4207faf180c83422e5f8b726741321af395bd724
Reviewed-on: http://codereview.qt.nokia.com/2865
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
16 files changed:
src/declarative/items/qsgtext.cpp
src/declarative/items/qsgtext_p_p.h
src/declarative/items/qsgtextedit.cpp
src/declarative/items/qsgtextedit_p.h
src/declarative/items/qsgtextedit_p_p.h
src/declarative/items/qsgtextinput.cpp
src/declarative/items/qsgtextinput_p.h
src/declarative/items/qsgtextinput_p_p.h
src/declarative/items/qsgtextnode.cpp
src/declarative/items/qsgtextnode_p.h
src/declarative/scenegraph/qsgadaptationlayer_p.h
src/declarative/scenegraph/qsgdistancefieldglyphnode.cpp
tests/auto/declarative/qsgtext/tst_qsgtext.cpp
tests/auto/declarative/qsgtextedit/tst_qsgtextedit.cpp
tests/auto/declarative/qsgtextinput/data/positionAt.qml
tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp