treemodel.h
changeset 726 7f43b93242aa
parent 725 7ea31701156e
child 727 96402b172173
     1.1 --- a/treemodel.h	Tue Aug 05 07:36:53 2008 +0000
     1.2 +++ b/treemodel.h	Mon Oct 06 11:10:20 2008 +0000
     1.3 @@ -5,7 +5,9 @@
     1.4  #include <QModelIndex>
     1.5  #include <QVariant>
     1.6  
     1.7 +
     1.8  class TreeItem;
     1.9 +class LinkableMapObj;
    1.10  
    1.11  class TreeModel : public QAbstractItemModel
    1.12  {
    1.13 @@ -25,10 +27,17 @@
    1.14      int rowCount(const QModelIndex &parent = QModelIndex()) const;
    1.15      int columnCount(const QModelIndex &parent = QModelIndex()) const;
    1.16  
    1.17 -private:
    1.18 +	TreeItem *first();
    1.19 +	TreeItem *next();
    1.20 +
    1.21 +protected:
    1.22 +	QModelIndex index (TreeItem* ti);
    1.23 +	TreeItem *LMOToItem(LinkableMapObj*);
    1.24      void setupModelData(TreeItem *parent);
    1.25  
    1.26      TreeItem *rootItem;
    1.27 +	static TreeItem* itFirst;
    1.28 +	static TreeItem* itCur;
    1.29  };
    1.30  
    1.31  #endif