Skip to content
  • Andrew den Exter's avatar
    Speed up TextEdit construction time. · 4598939e
    Andrew den Exter authored
    
    
    Defer setting content on the QTextDocument until componentComplete()
    to avoid unnecessary layouts and move one time setup for the
    text document from setContent to the constructor.
    
    Reduces the construction time of a TextEdit with RichText textFormat
    by about a third.
    
    Change-Id: Idde0772063bf769cde984efddd68589c55a7431a
    Reviewed-by: default avatarMartin Jones <martin.jones@nokia.com>
    4598939e