summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsanchorlayout
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-14 01:15:24 -0300
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-14 01:15:24 -0300
commit49286394bcb4e7c945c9d05d4b0a4f93a8a4b72f (patch)
tree9d7d02ad41791cf0d588bb31e61cd64890e216f9 /tests/auto/qgraphicsanchorlayout
parentfcd2540c1e5190b9edaebc6842263630a5d2da2b (diff)
QGraphicsAnchorLayout: size hint updated in a simplified graph
This commit makes setAnchorSizeHintsFromItems() support a simplified graph. Instead of going recursively, since AnchorData doesn't have all needed information, we make a list with all anchors/vertexpairs with dependencies first. That way we are sure to fill all information, and the group anchors can peek at its children anchors (dependencies) and they'll have updated information. This solutions doesn't require refreshSizeHints(). Alternative solutions that we might consider are: complementing the AnchorData information or making refreshSizeHints() take two AnchorVertex as parameters and use the recursive approach. 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 'tests/auto/qgraphicsanchorlayout')
0 files changed, 0 insertions, 0 deletions