forked from qt-creator/qt-creator
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:
@@ -385,7 +385,7 @@ void PluginView::setFilter(const QString &filter)
|
||||
PluginSpec *PluginView::pluginForIndex(const QModelIndex &index) const
|
||||
{
|
||||
const QModelIndex &sourceIndex = m_sortModel->mapToSource(index);
|
||||
auto item = dynamic_cast<PluginItem *>(m_model->itemFromIndex(sourceIndex));
|
||||
auto item = dynamic_cast<PluginItem *>(m_model->itemForIndex(sourceIndex));
|
||||
return item ? item->m_spec: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user