summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_widgets_qmainwindow.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-05-27 07:08:14 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-05-27 07:41:52 (GMT)
commit7cc8e62f74f66f20c216a8bc8c3187c989a3dcb4 (patch)
tree94156a2ff64389bbddd08b7275ed69a12fcd37b4 /doc/src/snippets/code/src_gui_widgets_qmainwindow.cpp
parent11a8c52498e8dc74fdfef48e953055338c8f18d7 (diff)
downloadQt-7cc8e62f74f66f20c216a8bc8c3187c989a3dcb4.zip
Qt-7cc8e62f74f66f20c216a8bc8c3187c989a3dcb4.tar.gz
Qt-7cc8e62f74f66f20c216a8bc8c3187c989a3dcb4.tar.bz2
Optimize initialization of QStaticText
Since QStaticText would be created once and used often, not much thought was put into optimizing its initialization. For simplicity, the code would do two drawText() passes. Since this was an unnecessary overhead, the extra pass has been removed and replaced by memmoves instead. Initialization is now twice as fast. Reviewed-by: Samuel
Diffstat (limited to 'doc/src/snippets/code/src_gui_widgets_qmainwindow.cpp')
0 files changed, 0 insertions, 0 deletions