Commit bd5e23a0 authored by Andrew den Exter's avatar Andrew den Exter Committed by Qt by Nokia
Browse files

Defer construction of TextEdit/TextInput delegates.


Don't create instances of the delegate components until the item
gains focus, or the cursorVisible property is set to true.

Cursor delegates are typically small and relatively fast to create and
so won't have a significant cost during a one off focus in event,
but that cost can still add up when creating a number of TextInputs
or TextEdits at once.  If a delegate that is instantiated immeditately
is required it is possible to instead create a child item and bind to
the cursorRectangle and cursorVisible properties.

Change-Id: I5ec2b5b6a30e534aee3dd5a58c6a5ac0686f5ce2
Reviewed-by: default avatarMichael Brasser <michael.brasser@nokia.com>
parent 6f9b3893
No related merge requests found
Showing with 291 additions and 117 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment