diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-01-20 14:11:58 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-02-09 16:18:16 (GMT) |
commit | d2c449adaa3169db0e5f87aa9a9961775bbac60f (patch) | |
tree | 26e6f47b5151961c0afa637f924532f6bb5d0f36 /doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp | |
parent | a4e7084cca16845433ed6509732e05372cae4857 (diff) | |
download | Qt-d2c449adaa3169db0e5f87aa9a9961775bbac60f.zip Qt-d2c449adaa3169db0e5f87aa9a9961775bbac60f.tar.gz Qt-d2c449adaa3169db0e5f87aa9a9961775bbac60f.tar.bz2 |
Avoids missing opacity updates by not propagating the ignoreOpacity flag
When doing a full update of a parent item, by setting one of these flags,
QGraphicsItem::ItemIgnoresTransformations | ItemClipsChildrenToShape |
ItemIsSelectable, the child items that were transparent would not be
shown when setting their respective opacity to 1.0
We just need to set the ignoreOpacity flag when setting opacity to 0.0.
This avoids propagating this flag to the child items when it's not
needed.
Task-number: QT-2653
Reviewed-by: bnilsen
(cherry picked from commit 08c649e6a81ab13d0c7db6aa1b480ed149e3f770)
Diffstat (limited to 'doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp')
0 files changed, 0 insertions, 0 deletions