diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 10:06:55 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 10:06:55 (GMT) |
commit | f2f5efc551648c01a384dbc36cec0d966ccbebbb (patch) | |
tree | 2295de9ad8f4a1124244a34f7c17306d65e19487 /src/gui/graphicsview/qgraphicsanchorlayout.cpp | |
parent | a00fe5c3890ba3b80ff37657d988fb52502f6f78 (diff) | |
download | Qt-f2f5efc551648c01a384dbc36cec0d966ccbebbb.zip Qt-f2f5efc551648c01a384dbc36cec0d966ccbebbb.tar.gz Qt-f2f5efc551648c01a384dbc36cec0d966ccbebbb.tar.bz2 |
Clean up public API: move dumpGraph() to private API.
Hopefully we won't need it more...
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp index 9084c2c..b3dac18 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp @@ -350,21 +350,3 @@ QSizeF QGraphicsAnchorLayout::sizeHint(Qt::SizeHint which, const QSizeF &constra return engineSizeHint + QSizeF(left + right, top + bottom); } - -//////// DEBUG ///////// -#include <QFile> -void QGraphicsAnchorLayout::dumpGraph() -{ - Q_D(QGraphicsAnchorLayout); - - QFile file(QString::fromAscii("anchorlayout.dot")); - if (!file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) - qWarning("Could not write to %s", file.fileName().toLocal8Bit().constData()); - - QString str = QString::fromAscii("digraph anchorlayout {\nnode [shape=\"rect\"]\n%1}"); - QString dotContents = d->graph[0].serializeToDot(); - dotContents += d->graph[1].serializeToDot(); - file.write(str.arg(dotContents).toLocal8Bit()); - - file.close(); -} |