MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / removeRows

Method removeRows

static_libs/filetree/ft_model.cpp:191–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191bool Model::removeRows(int row, int count, const QModelIndex& parent)
192{
193 Node* item = nullptr;
194 if (parent.isValid())
195 item = static_cast<Node*>(parent.internalPointer());
196 else
197 return false;
198
199 beginRemoveRows(parent, row, row + count - 1);
200 while (count--)
201 item->remove(row);
202 endRemoveRows();
203 resetInternalData();
204 return true;
205}
206
207int Model::columnCount(const QModelIndex& /*parent*/) const
208{

Callers 1

closeFilesMethod · 0.45

Calls 2

isValidMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected