From 961ce72bba27e1e91a0a1ba456058cdd880558eb Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 17 Aug 2009 13:57:55 -0300 Subject: QGraphicsAnchorLayout: hide some debug messages --- src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp index b20d358..11dc59e 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp @@ -370,8 +370,10 @@ void QGraphicsAnchorLayoutPrivate::simplifyGraph(Orientation orientation) return; graphSimplified[orientation] = true; +#if 0 qDebug("Simplifying Graph for %s", orientation == Horizontal ? "Horizontal" : "Vertical"); +#endif AnchorVertex *rootVertex = graph[orientation].rootVertex(); @@ -612,8 +614,10 @@ void QGraphicsAnchorLayoutPrivate::restoreSimplifiedGraph(Orientation orientatio return; graphSimplified[orientation] = false; +#if 0 qDebug("Restoring Simplified Graph for %s", orientation == Horizontal ? "Horizontal" : "Vertical"); +#endif Q_Q(QGraphicsAnchorLayout); Graph &g = graph[orientation]; @@ -1300,8 +1304,10 @@ void QGraphicsAnchorLayoutPrivate::calculateGraphs( GraphPath trunkPath = graphPaths[orientation].value(v); if (!trunkConstraints.isEmpty()) { +#if 0 qDebug("Simplex used for trunk of %s", orientation == Horizontal ? "Horizontal" : "Vertical"); +#endif // Solve min and max size hints for trunk QPair minMax = solveMinMax(trunkConstraints, trunkPath); @@ -1332,8 +1338,10 @@ void QGraphicsAnchorLayoutPrivate::calculateGraphs( } sizeHints[orientation][Qt::PreferredSize] = pref; } else { +#if 0 qDebug("Simplex NOT used for trunk of %s", orientation == Horizontal ? "Horizontal" : "Vertical"); +#endif // No Simplex is necessary because the path was simplified all the way to a single // anchor. -- cgit v0.12