MCPcopy Create free account
hub / github.com/Kitware/VTK / headerData

Method headerData

Examples/GUI/Qt/CellGridSource/ArrayGroupModel.cxx:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91QVariant ArrayGroupModel::headerData(int section, Qt::Orientation orientation, int role) const
92{
93 if (role != Qt::DisplayRole || orientation == Qt::Vertical)
94 {
95 return QVariant();
96 }
97 if (section < 0 || section > this->columnCount(QModelIndex()))
98 {
99 return QVariant();
100 }
101 return QString::fromStdString(this->ColumnToArrayComponent[section].Label);
102}
103
104QVariant ArrayGroupModel::data(const QModelIndex& index, int role) const
105{

Callers

nothing calls this directly

Calls 2

columnCountMethod · 0.95
QModelIndexClass · 0.50

Tested by

no test coverage detected