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

Method mapProxyRowToSource

src/KDChart/KDChartDatasetProxyModel.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146int DatasetProxyModel::mapProxyRowToSource(const int &proxyRow) const
147{
148 if (mRowProxyToSrcMap.isEmpty()) { // if no row mapping is set, we pass down the row:
149 return proxyRow;
150 } else {
151 Q_ASSERT(proxyRow >= 0 && proxyRow < mRowProxyToSrcMap.size());
152 return mRowProxyToSrcMap[proxyRow];
153 }
154}
155
156int DatasetProxyModel::mapProxyColumnToSource(const int &proxyColumn) const
157{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected