Create rectangle nodes in the text editing through the context
authorLars Knoll <lars.knoll@digia.com>
Fri, 8 Aug 2014 18:29:19 +0000 (20:29 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 13 Aug 2014 13:03:51 +0000 (15:03 +0200)
commitfb339b21b8a24b835cea7a057c47b7c5ad80dd72
tree5ad9ff6bb107073acc7ae16bfaf7801fd10f7714
parent2b3de73defd4fca0888b5c2824c73d4fc26d6f7c
Create rectangle nodes in the text editing through the context

Unfortunately we can't re-use the QSGSimpleRectNode, as it doesn't provide us
with virtual methods to move it's creation into the context. But's since it's
only 20 lines of code anyway, this is still a nice cleanup. And it also allows
the re-use of any optimizations in the renderer for QSGRectangleNode.

Change-Id: I957777fbbeb0a994a9c257baf3bfe87fce8cc9e8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextedit_p_p.h
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextnode.cpp
src/quick/items/qquicktextnode_p.h
src/quick/items/qquicktextnodeengine.cpp
src/quick/scenegraph/qsgcontext.cpp
src/quick/scenegraph/qsgcontext_p.h