MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeRows

Method removeRows

plugins/projectfilter/filtermodel.cpp:221–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221bool FilterModel::removeRows(int row, int count, const QModelIndex& parent)
222{
223 Q_ASSERT(!parent.isValid());
224 Q_ASSERT(count == 1);
225 Q_ASSERT(row >= 0 && row < m_filters.size());
226 Q_ASSERT(row + count <= m_filters.size());
227
228 if (m_ignoredLastInsert) {
229 return false;
230 }
231
232 beginRemoveRows(parent, row, row + count - 1);
233 m_filters.remove(row, count);
234 endRemoveRows();
235
236 return true;
237}
238
239QMap<int, QVariant> FilterModel::itemData(const QModelIndex& index) const
240{

Callers 7

removeItemsMethod · 0.45
initMethod · 0.45
testManualBreakpointMethod · 0.45
createFromDebuggerMethod · 0.45
initMethod · 0.45
removeMethod · 0.45
testManualBreakpointMethod · 0.45

Calls 3

isValidMethod · 0.45
sizeMethod · 0.45
removeMethod · 0.45

Tested by 4

initMethod · 0.36
testManualBreakpointMethod · 0.36
initMethod · 0.36
testManualBreakpointMethod · 0.36