summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-17 21:27:58 (GMT)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-17 21:27:58 (GMT)
commit9979d162a3aec02fb74890b4131b5bb745af61cd (patch)
treef5607eb7d47f75bc16940c9091642279f30c0c62 /src/gui/graphicsview
parent961ce72bba27e1e91a0a1ba456058cdd880558eb (diff)
downloadQt-9979d162a3aec02fb74890b4131b5bb745af61cd.zip
Qt-9979d162a3aec02fb74890b4131b5bb745af61cd.tar.gz
Qt-9979d162a3aec02fb74890b4131b5bb745af61cd.tar.bz2
QGraphicsAnchorLayout: add QT_ANCHORLAYOUT_NO_SIMPLIFICATION back
For debugging purposes, if QT_ANCHORLAYOUT_NO_SIMPLIFICATION environment variable is set, the layout won't use simplification. Useful for some debuggings.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
index 11dc59e..4d67d58 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
@@ -366,6 +366,10 @@ static bool simplifySequentialChunk(Graph<AnchorVertex, AnchorData> *graph,
void QGraphicsAnchorLayoutPrivate::simplifyGraph(Orientation orientation)
{
+ static bool noSimplification = !qgetenv("QT_ANCHORLAYOUT_NO_SIMPLIFICATION").isEmpty();
+ if (noSimplification)
+ return;
+
if (graphSimplified[orientation])
return;
graphSimplified[orientation] = true;