diff -r 7ea31701156e -r 7f43b93242aa treemodel.h --- a/treemodel.h Tue Aug 05 07:36:53 2008 +0000 +++ b/treemodel.h Mon Oct 06 11:10:20 2008 +0000 @@ -5,7 +5,9 @@ #include #include + class TreeItem; +class LinkableMapObj; class TreeModel : public QAbstractItemModel { @@ -25,10 +27,17 @@ int rowCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; -private: + TreeItem *first(); + TreeItem *next(); + +protected: + QModelIndex index (TreeItem* ti); + TreeItem *LMOToItem(LinkableMapObj*); void setupModelData(TreeItem *parent); TreeItem *rootItem; + static TreeItem* itFirst; + static TreeItem* itCur; }; #endif