move QSGNodeUpdater into private header where it belongs
authorGunnar Sletta <gunnar.sletta@nokia.com>
Sat, 3 Sep 2011 05:49:07 +0000 (07:49 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Wed, 7 Sep 2011 06:46:16 +0000 (08:46 +0200)
Change-Id: I5cb12cac3d49cfd9b1682b405e65b2cdea4eb57d
Reviewed-on: http://codereview.qt.nokia.com/4306
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>

src/declarative/scenegraph/coreapi/qsgnode.cpp
src/declarative/scenegraph/coreapi/qsgnode.h
src/declarative/scenegraph/coreapi/qsgrenderer.cpp
src/declarative/scenegraph/coreapi/qsgrenderer_p.h

index 65b4bf9..fac44da 100644 (file)
@@ -1247,35 +1247,6 @@ QDebug operator<<(QDebug d, const QSGNode *n)
     return d;
 }
 
-
-/*!
-    \class QSGNodeDumper
-    \brief The QSGNodeDumper class provides a way of dumping a scene grahp to the console.
-
-    This class is solely for debugging purposes.
-
-    \internal
- */
-
-void QSGNodeDumper::dump(QSGNode *n)
-{
-    QSGNodeDumper dump;
-    dump.visitNode(n);
-}
-
-void QSGNodeDumper::visitNode(QSGNode *n)
-{
-    qDebug() << QString(m_indent * 2, QLatin1Char(' ')) << n;
-    QSGNodeVisitor::visitNode(n);
-}
-
-void QSGNodeDumper::visitChildren(QSGNode *n)
-{
-    ++m_indent;
-    QSGNodeVisitor::visitChildren(n);
-    --m_indent;
-}
-
 #endif
 
 QT_END_NAMESPACE
index 95c89b9..c4f4674 100644 (file)
@@ -339,19 +339,6 @@ Q_DECLARATIVE_EXPORT QDebug operator<<(QDebug, const QSGTransformNode *n);
 Q_DECLARATIVE_EXPORT QDebug operator<<(QDebug, const QSGOpacityNode *n);
 Q_DECLARATIVE_EXPORT QDebug operator<<(QDebug, const QSGRootNode *n);
 
-class QSGNodeDumper : public QSGNodeVisitor {
-
-public:
-    static void dump(QSGNode *n);
-
-    QSGNodeDumper() : m_indent(0) {}
-    void visitNode(QSGNode *n);
-    void visitChildren(QSGNode *n);
-
-private:
-    int m_indent;
-};
-
 #endif
 
 QT_END_NAMESPACE
index 57a3059..e8e6760 100644 (file)
@@ -698,6 +698,33 @@ void QSGRenderer::draw(const QSGMaterialShader *shader, const QSGGeometry *g)
 
 }
 
+/*!
+    \class QSGNodeDumper
+    \brief The QSGNodeDumper class provides a way of dumping a scene grahp to the console.
+
+    This class is solely for debugging purposes.
+
+    \internal
+ */
+
+void QSGNodeDumper::dump(QSGNode *n)
+{
+    QSGNodeDumper dump;
+    dump.visitNode(n);
+}
+
+void QSGNodeDumper::visitNode(QSGNode *n)
+{
+    qDebug() << QString(m_indent * 2, QLatin1Char(' ')) << n;
+    QSGNodeVisitor::visitNode(n);
+}
+
+void QSGNodeDumper::visitChildren(QSGNode *n)
+{
+    ++m_indent;
+    QSGNodeVisitor::visitChildren(n);
+    --m_indent;
+}
 
 
 QT_END_NAMESPACE
index eed6483..05fb9b4 100644 (file)
@@ -212,6 +212,21 @@ QSGMaterialShader::RenderState QSGRenderer::state(QSGMaterialShader::RenderState
 }
 
 
+class Q_DECLARATIVE_EXPORT QSGNodeDumper : public QSGNodeVisitor {
+
+public:
+    static void dump(QSGNode *n);
+
+    QSGNodeDumper() : m_indent(0) {}
+    void visitNode(QSGNode *n);
+    void visitChildren(QSGNode *n);
+
+private:
+    int m_indent;
+};
+
+
+
 QT_END_NAMESPACE
 
 QT_END_HEADER