diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-17 21:27:58 (GMT) |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-17 21:27:58 (GMT) |
commit | 9979d162a3aec02fb74890b4131b5bb745af61cd (patch) | |
tree | f5607eb7d47f75bc16940c9091642279f30c0c62 /src/gui/graphicsview | |
parent | 961ce72bba27e1e91a0a1ba456058cdd880558eb (diff) | |
download | Qt-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.cpp | 4 |
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; |