Changeset View
Changeset View
Standalone View
Standalone View
src/completion/kateargumenthintmodel.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 75 | for (int a = 0; a < group()->filtered.count(); a++) { | |||
---|---|---|---|---|---|
78 | QVariant v = sourceIndex.data(CodeCompletionModel::ArgumentHintDepth); | 78 | QVariant v = sourceIndex.data(CodeCompletionModel::ArgumentHintDepth); | ||
79 | if (v.type() == QVariant::Int) { | 79 | if (v.type() == QVariant::Int) { | ||
80 | QList<int> &lst(m_depths[v.toInt()]); | 80 | QList<int> &lst(m_depths[v.toInt()]); | ||
81 | lst << a; | 81 | lst << a; | ||
82 | } | 82 | } | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | for (QMap<int, QList<int> >::const_iterator it = m_depths.constBegin(); it != m_depths.constEnd(); ++it) { | 85 | for (QMap<int, QList<int> >::const_iterator it = m_depths.constBegin(); it != m_depths.constEnd(); ++it) { | ||
86 | foreach (int row, *it) { | 86 | for (int row : *it) { | ||
87 | m_rows.push_front(row); //Insert filtered in reversed order | 87 | m_rows.push_front(row); //Insert filtered in reversed order | ||
88 | } | 88 | } | ||
89 | m_rows.push_front(-it.key()); | 89 | m_rows.push_front(-it.key()); | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | endResetModel(); | 92 | endResetModel(); | ||
93 | 93 | | |||
94 | emit contentStateChanged(!m_rows.isEmpty()); | 94 | emit contentStateChanged(!m_rows.isEmpty()); | ||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |