BuildLogViewer/DomModel.h
changeset 1 8e9c5760ce6f
parent 0 bbe0af256f1b
--- a/BuildLogViewer/DomModel.h	Fri Aug 28 15:16:29 2009 -0700
+++ b/BuildLogViewer/DomModel.h	Wed Sep 02 19:04:26 2009 -0700
@@ -47,6 +47,11 @@
  #include <QModelIndex>
  #include <QVariant>
 
+/*
+  * This class encapsulates the DOM tree for the build output log and provides
+  * an interface to the classes which presents it to the user.
+  */
+
  class DomItem;
 
  class DomModel : public QAbstractItemModel
@@ -54,7 +59,7 @@
      Q_OBJECT
 
  public:
-     DomModel(QDomDocument document, QObject *parent = 0);
+     DomModel(QDomDocument *document, QObject *parent = 0);
      ~DomModel();
 
      QVariant data(const QModelIndex &index, int role) const;
@@ -68,7 +73,7 @@
      int columnCount(const QModelIndex &parent = QModelIndex()) const;
 
  private:
-     QDomDocument domDocument;
+     QDomDocument *domDocument;
      DomItem *rootItem;
  };