| 37 | } |
| 38 | |
| 39 | QVariant 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 | |
| 46 | int SpreadsheetCommentsHeaderModel::rowCount(const QModelIndex& /*parent*/) const { |
| 47 | return m_spreadsheet_model->rowCount(); |
no test coverage detected