TreeModel: Simplify indexFromItem()

Change-Id: Ief7f120ef27eb43746826da7c771b5f9a3f7ce8f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-01-09 17:02:09 +01:00
parent c6a983d271
commit 6ebdc18f98
2 changed files with 7 additions and 22 deletions

View File

@@ -202,9 +202,6 @@ public:
}
private:
QModelIndex indexFromItemHelper(const TreeItem *needle,
TreeItem *parentItem, const QModelIndex &parentIndex) const;
TreeItem *m_root; // Owned.
};