From 79b89a55d4883bb28bdda465da45740d4ebf7e60 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Fri, 25 Apr 2014 11:16:22 +0200 Subject: [PATCH] TaskModel: Remove updateMapping calls that lead to bad performance Those were missed in 48255c92293c336d77ad4072a8dd41f7a250dfd9 Task-number: QTCREATORBUG-12109 Change-Id: Ie0cf9026038dd6627593c8dd14ab52d6c1ff19cf Reviewed-by: Tobias Hunger Reviewed-by: Orgad Shaneh --- src/plugins/projectexplorer/taskmodel.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/projectexplorer/taskmodel.cpp b/src/plugins/projectexplorer/taskmodel.cpp index 5c8a67cf475..75fb54eb345 100644 --- a/src/plugins/projectexplorer/taskmodel.cpp +++ b/src/plugins/projectexplorer/taskmodel.cpp @@ -362,7 +362,6 @@ int TaskFilterModel::rowCount(const QModelIndex &parent) const if (parent.isValid()) return 0; - updateMapping(); return m_mapping.count(); } @@ -455,7 +454,6 @@ void TaskFilterModel::handleReset() QModelIndex TaskFilterModel::mapFromSource(const QModelIndex &idx) const { - updateMapping(); QList::const_iterator it = qBinaryFind(m_mapping.constBegin(), m_mapping.constEnd(), idx.row()); if (it == m_mapping.constEnd()) return QModelIndex(); @@ -464,7 +462,6 @@ QModelIndex TaskFilterModel::mapFromSource(const QModelIndex &idx) const QModelIndex TaskFilterModel::mapToSource(const QModelIndex &index) const { - updateMapping(); int row = index.row(); if (row >= m_mapping.count()) return QModelIndex();