MCPcopy Create free account
hub / github.com/KDE/labplot / index

Method index

src/backend/worksheet/TreeModel.cpp:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186QModelIndex TreeModel::index(int row, int column, const QModelIndex& parent) const {
187 if (parent.isValid() && parent.column() != 0)
188 return {};
189
190 TreeItem* parentItem = getItem(parent);
191
192 TreeItem* childItem = parentItem->child(row);
193 if (childItem)
194 return createIndex(row, column, childItem);
195 else
196 return {};
197}
198
199bool TreeModel::insertColumns(int position, int columns, const QModelIndex& parent) {
200 bool success;

Callers 7

cursorPosChangedMethod · 0.45
curveDataChangedMethod · 0.45
curveAddedMethod · 0.45
curveRemovedMethod · 0.45
updateCurveBackgroundMethod · 0.45

Calls 3

isValidMethod · 0.45
columnMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected