MCPcopy Create free account
hub / github.com/YACReader/yacreader / headerData

Method headerData

YACReaderLibrary/db/folder_model.cpp:441–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441QVariant FolderModel::headerData(int section,
442 Qt::Orientation orientation,
443 int role) const
444{
445 if (rootItem == nullptr) {
446 return QVariant();
447 }
448
449 if (orientation == Qt::Horizontal && role == Qt::DisplayRole)
450 return rootItem->data(section);
451
452 return QVariant();
453}
454
455QModelIndex FolderModel::index(int row, int column, const QModelIndex &parent)
456 const

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected