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

Method genJsonByIndex

src/backend/datasources/filters/QJsonModel.cpp:387–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387QJsonDocument QJsonModel::genJsonByIndex(const QModelIndex& index) const {
388 if (!index.isValid())
389 return {};
390
391 auto* item = static_cast<QJsonTreeItem*>(index.internalPointer());
392 return QJsonDocument::fromVariant(genJson(item).toVariant());
393}

Callers 1

prepareDocumentToReadMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected