diff options
author | Aleksandar Stojiljkovic <aleksandar.stojiljkovic@nokia.com> | 2011-08-19 17:16:35 +0300 |
---|---|---|
committer | Aleksandar Stojiljkovic <aleksandar.stojiljkovic@nokia.com> | 2011-08-19 17:16:35 +0300 |
commit | 090ff76845ca5b9c61319f359a94cc239b18846b (patch) | |
tree | 0deaf6d8b9d9f4f64696dabd81515d38bcce6662 /doc/src/snippets/code/src_sql_kernel_qsqldriver.cpp | |
parent | 84408e18ac5a5ccc69cf34832f31ef63b3ff9f11 (diff) | |
download | qt4-tools-090ff76845ca5b9c61319f359a94cc239b18846b.tar.gz |
Avoid calling QInputMethod update when adding or removing QGraphicsItems that don't have focus
Removing item from QGraphicsScene takes longer if focus is in item (and that item is not being removed) with ItemAcceptsInputMethod.
update() in QInputContext or in subclasses could be expensive - usually requires inputMethodFocus and a sequence of inputMethodQuery calls to get the state. In MeeGo, additionally, dbus IPC in MInputContext makes it order of magnitude slower.
Minor indentation issue in QGraphicsViewPrivate::updateInputMethodSensitivity()
Reviewed-by: Samuel Rødal
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqldriver.cpp')
0 files changed, 0 insertions, 0 deletions