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

Method getItem

src/backend/worksheet/TreeModel.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170TreeItem* TreeModel::getItem(const QModelIndex& index) const {
171 if (index.isValid()) {
172 auto* item = static_cast<TreeItem*>(index.internalPointer());
173 if (item)
174 return item;
175 }
176 return rootItem;
177}
178
179QVariant TreeModel::headerData(int section, Qt::Orientation orientation, int role) const {
180 if (orientation == Qt::Horizontal && role == Qt::DisplayRole)

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected