diff -r c6bb4fdcc55f -r 78ba80b54bc4 treemodel.h --- a/treemodel.h Sat Aug 08 21:58:26 2009 +0000 +++ b/treemodel.h Tue Aug 18 12:39:07 2009 +0000 @@ -22,6 +22,7 @@ Qt::ItemFlags flags(const QModelIndex &index) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QModelIndex index (TreeItem* ti); QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; QModelIndex parent(const QModelIndex &index) const; @@ -35,7 +36,6 @@ TreeItem* getItem (const QModelIndex &index) const; TreeItem* getRootItem(); - QModelIndex index (TreeItem* ti); protected: