! Returns the data range with the specified \a index. If the data selection is simplified (the usual state of the selection, see \ref simplify), the ranges are sorted by ascending data point index. \see dataRangeCount */
| 2542 | \see dataRangeCount |
| 2543 | */ |
| 2544 | QCPDataRange QCPDataSelection::dataRange(int index) const |
| 2545 | { |
| 2546 | if (index >= 0 && index < mDataRanges.size()) |
| 2547 | { |
| 2548 | return mDataRanges.at(index); |
| 2549 | } else |
| 2550 | { |
| 2551 | qDebug() << Q_FUNC_INFO << "index out of range:" << index; |
| 2552 | return {}; |
| 2553 | } |
| 2554 | } |
| 2555 | |
| 2556 | /*! |
| 2557 | Returns a \ref QCPDataRange which spans the entire data selection, including possible |
no test coverage detected