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

Method removeRows

kdevplatform/debugger/util/pathmappings.cpp:142–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) override
143 {
144 if (parent.isValid()) return false;
145 if (row+count > m_paths.count()) return false;
146 beginRemoveRows(parent, row, row+count-1);
147 for (int i=0; i<count; ++i) {
148 qCDebug(DEBUGGER) << row + i;
149 m_paths.removeAt(row + i);
150 }
151 qCDebug(DEBUGGER) << m_paths.count();
152 endRemoveRows();
153
154 return true;
155 }
156
157 void loadFromConfiguration(const KConfigGroup &config)
158 {

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.50
isValidMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected