diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-13 18:07:34 (GMT) |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-13 18:07:34 (GMT) |
commit | 548583f449432363fad8fe547ce073bb754d46be (patch) | |
tree | 815ff67f743f7901488c0c4dbd30eead7bfa09d3 /doc/src/snippets/code/src_network_kernel_qhostaddress.cpp | |
parent | 114e4b6ca9a1871f75dc5b9d443ab1e344eb99af (diff) | |
download | Qt-548583f449432363fad8fe547ce073bb754d46be.zip Qt-548583f449432363fad8fe547ce073bb754d46be.tar.gz Qt-548583f449432363fad8fe547ce073bb754d46be.tar.bz2 |
QGraphicsAnchorLayout: fix merging of preferredSizeHint
In simplification, the preferred size of a parallel group should get the
maximum preferred size (and bound it to the maximum size). This follows
the principle that for an layout item: 'growing is better than
shrinking', and is consistent with what our linear program also do.
This patch also make sure that the sizeAt* are properly initialized to
the preferred size, the idea is if there's no restriction upon an
anchor, it'll keep it's preferred size no matter what.
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Reviewed-by: Artur Duque de Souza <artur.souza@openbossa.org>
Diffstat (limited to 'doc/src/snippets/code/src_network_kernel_qhostaddress.cpp')
0 files changed, 0 insertions, 0 deletions