summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_text_qtextlayout.cpp
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-08-08 00:52:46 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-08-10 09:00:53 (GMT)
commite2436e25b066ed8236b9cba3483d4a0b87500c91 (patch)
tree4056ace567943db48969cf60df0c7eca07f84ea8 /doc/src/snippets/code/src_gui_text_qtextlayout.cpp
parent2f5516cc5a8990e6d1bc5d8d557c421dc0150265 (diff)
downloadQt-e2436e25b066ed8236b9cba3483d4a0b87500c91.zip
Qt-e2436e25b066ed8236b9cba3483d4a0b87500c91.tar.gz
Qt-e2436e25b066ed8236b9cba3483d4a0b87500c91.tar.bz2
QGraphicsAnchorLayout: Enable graph simplification
This commit enables graph simplification in its simplest way, which is to simplify the graph, run simplex and then restore it back. It also adds code to handle cases where the simplification handles the whole graph, and that therefore no simplex needs to be run. Additionally, the updateChildrenSizes() method is called on every root anchor in order to propagate the new sizes down the tree. A know issue appeared after this commit, as the quote below explains: ===== Q_ASSERT error in "Parallel" test That's something that started happening in the Parallel test (tests/auto/qgraphicsanchorlayout) after my commit of today, that enables simplification. I haven't been able to investigate it deeply but that's what I know about it: - It's triggered when the layout is destroyed, more precisely, from within "deleteLayoutEdges". What happens is that the layout structural anchors are missing at that point. - I suspect there's something to do with the simplifyGraph() and/or restoreSimplifyGraph() code. I say that because I tried moving the "restoreSimplifiedGraph" call from the end of the calculateGraph(s) method to the line exactly below the "simplifyGraph()" and the error still happens. That means that simplifying and then immediately restoring the graph might not leave it to the point where it was before the simplification. ==== Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Diffstat (limited to 'doc/src/snippets/code/src_gui_text_qtextlayout.cpp')
0 files changed, 0 insertions, 0 deletions