]> git.siccegge.de Git - frida/frida.git/commit
in populateWidget create new TextDocument and attach it at the end
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 26 May 2015 16:04:24 +0000 (18:04 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 26 May 2015 16:04:24 +0000 (18:04 +0200)
commit2486ab6ab9c8538287cde97cb0c2de8c4402c0d1
treef99b5e6944ef0ac10ff5292cc26dea990ee4eeb5
parent4e10c813f57981265534133a6d857fd66c6edccc
in populateWidget create new TextDocument and attach it at the end

This is a *huge* performance improvement. Instead of using the
QTextDocument already attached to the QGraphicsTextItem, we create a
new QTextDocument and fill it. Only at the end of populateWidget() we
attach it to the QGraphicsTextItem. This way it will only be layouted
once and not per insert (three times per instruction).
src/gui/widgets/BasicBlockWidget.cxx