diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-08 11:09:14 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:36:05 (GMT) |
commit | 0095e40b2efc0c43c0d908bb5b9828619bc087e7 (patch) | |
tree | 95850288ca3b4171e400c57b5d703b17fafbeb67 /doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp | |
parent | 9cafd6bcf6f91c027904c998a0dd536feac8d4e0 (diff) | |
download | Qt-0095e40b2efc0c43c0d908bb5b9828619bc087e7.zip Qt-0095e40b2efc0c43c0d908bb5b9828619bc087e7.tar.gz Qt-0095e40b2efc0c43c0d908bb5b9828619bc087e7.tar.bz2 |
QGraphicsItem discard updates when it shouldn't.
Once a _q_processDirtyItems call is queued, it means we at least have
one item that is marked as dirty and we must reset it when the
_q_processDirtyItems slot is called. The problem however, was that
we didn't reset the item's dirty state if a full scene update occurred
in between, i.e. item->update(); scene.update();
We don't have to calculate the item's dirty rect if a full scene update
occurs in between, but we still have to reset its state.
Auto-test included.
Diffstat (limited to 'doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp')
0 files changed, 0 insertions, 0 deletions