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

Method headerData

src/frontend/spreadsheet/SpreadsheetCommentsHeaderModel.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39QVariant SpreadsheetCommentsHeaderModel::headerData(int section, Qt::Orientation orientation, int role) const {
40 if (orientation != Qt::Horizontal || role != Qt::DisplayRole || section < 0 || section >= columnCount())
41 return {};
42
43 return {m_spreadsheet_model->headerData(section, Qt::Horizontal, static_cast<int>(SpreadsheetModel::CustomDataRole::CommentRole))};
44}
45
46int SpreadsheetCommentsHeaderModel::rowCount(const QModelIndex& /*parent*/) const {
47 return m_spreadsheet_model->rowCount();

Callers 8

setModelMethod · 0.45
printMethod · 0.45
exportToLaTeXMethod · 0.45
showColumnStatisticsMethod · 0.45
showRowStatisticsMethod · 0.45
resizeHeaderMethod · 0.45
printMethod · 0.45
paintSectionMethod · 0.45

Calls 1

columnCountFunction · 0.85

Tested by

no test coverage detected