TreeModel: API cleanup

- rename index{From->For}Item
- rename item{From->For}Index
- remove ununsed setColumnCount

Change-Id: I1cce9657e476dd1e8ffa9f7cdb2e646fab6884ab
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2015-04-22 12:37:39 +02:00
parent 9f269dfb63
commit 89b0e4c069
12 changed files with 37 additions and 43 deletions

View File

@@ -226,7 +226,7 @@ CMakeToolTreeItem *CMakeToolItemModel::cmakeToolItem(const Core::Id &id) const
CMakeToolTreeItem *CMakeToolItemModel::cmakeToolItem(const QModelIndex &index) const
{
TreeItem *item = itemFromIndex(index);
TreeItem *item = itemForIndex(index);
if (item->level() == 2)
return static_cast<CMakeToolTreeItem *>(item);
return 0;