summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-09-24 20:09:16 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-06 09:28:35 (GMT)
commit5dd77be3acfb53b44d7d6b0015af0c33124ab84a (patch)
tree799242dc831e7623cc5b8d8e1c89e63a3b6ccd2c /doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp
parente210bea72ef65f99babb4c6f5bd442184c671d3b (diff)
downloadQt-5dd77be3acfb53b44d7d6b0015af0c33124ab84a.zip
Qt-5dd77be3acfb53b44d7d6b0015af0c33124ab84a.tar.gz
Qt-5dd77be3acfb53b44d7d6b0015af0c33124ab84a.tar.bz2
QGraphicsAnchorLayout: cleaning up AnchorData
Use just one constructor for AnchorData and tweak the struct when necessary. Also use the function refreshSizeHints() for Normal anchors to get the item information instead of passing to the constructor. This has the advantage that we don't need to replicate the code for checking and updating the size hint and size policies. Note that the code before only considered the size policies after the first refreshSizeHints() -- which we know will be called after the simplification, so the assumption seems to be correct, but we don't depend on that anymore.. Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Diffstat (limited to 'doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp')
0 files changed, 0 insertions, 0 deletions