diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-17 16:57:55 (GMT) |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-17 16:59:06 (GMT) |
commit | 961ce72bba27e1e91a0a1ba456058cdd880558eb (patch) | |
tree | 7e0e3e1772dc21eede7c3a5a506c5a68a367c759 /src | |
parent | 3d8d478a6ee108e25f28f8b52db9a6e86ebce8e1 (diff) | |
download | Qt-961ce72bba27e1e91a0a1ba456058cdd880558eb.zip Qt-961ce72bba27e1e91a0a1ba456058cdd880558eb.tar.gz Qt-961ce72bba27e1e91a0a1ba456058cdd880558eb.tar.bz2 |
QGraphicsAnchorLayout: hide some debug messages
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<AnchorVertex, AnchorData> &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<qreal, qreal> 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. |