MCPcopy Create free account
hub / github.com/KDAB/KDChart / headerData

Method headerData

src/KDChart/KDChartDatasetProxyModel.cpp:205–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205QVariant DatasetProxyModel::headerData(int section, Qt::Orientation orientation, int role) const
206{
207 if (orientation == Qt::Horizontal) {
208 if (mapProxyColumnToSource(section) == -1) {
209 return QVariant();
210 } else {
211 return sourceModel()->headerData(mapProxyColumnToSource(section), orientation, role);
212 }
213 } else {
214 if (mapProxyRowToSource(section) == -1) {
215 return QVariant();
216 } else {
217 return sourceModel()->headerData(mapProxyRowToSource(section), orientation, role);
218 }
219 }
220}
221
222void DatasetProxyModel::initializeDatasetDecriptors(
223 const DatasetDescriptionVector &inConfiguration,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected