diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-04-25 11:16:22 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-04-28 10:54:16 +0200 |
commit | 79b89a55d4883bb28bdda465da45740d4ebf7e60 (patch) | |
tree | 786ba2e00502d9bba42f585fb8939845ba495c14 | |
parent | eb32e5713c059973ab1451e3d0a1b0d9775e52f9 (diff) | |
download | qt-creator-79b89a55d4883bb28bdda465da45740d4ebf7e60.tar.gz |
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 <tobias.hunger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/projectexplorer/taskmodel.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.cpp b/src/plugins/projectexplorer/taskmodel.cpp index 5c8a67cf47..75fb54eb34 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<int>::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(); |