QQuickTextEdit: render inline images after change 48798
authorPierre Rossi <pierre.rossi@digia.com>
Thu, 21 Mar 2013 12:15:01 +0000 (13:15 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 4 Apr 2013 16:10:04 +0000 (18:10 +0200)
commita487974f663bd03309f45d82b380c00eb2829dae
tree37215619035f1beeb14950269dfeaddbdd685912
parent922c96767923310eb19e81ae9b42d4d19f9ce151
QQuickTextEdit: render inline images after change 48798

The refactoring in QQuickTextEdit from this change:
https://codereview.qt-project.org/#change,48798
accidentally broke rendering of inline images.
Revive the ProtectedLayoutAccessor trick to get the proper
format and properly extract the image from it.

Change-Id: I445914efcea1012daa79d594aa1e828b1039b988
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/items/qquicktextedit.cpp