! Adds the given \a dataRange to this data selection. This is equivalent to the += operator but allows disabling immediate simplification by setting \a simplify to false. This can improve performance if adding a very large amount of data ranges successively. In this case, make sure to call \ref simplify manually, after the operation. */
| 2572 | call \ref simplify manually, after the operation. |
| 2573 | */ |
| 2574 | void QCPDataSelection::addDataRange(const QCPDataRange &dataRange, bool simplify) |
| 2575 | { |
| 2576 | mDataRanges.append(dataRange); |
| 2577 | if (simplify) |
| 2578 | this->simplify(); |
| 2579 | } |
| 2580 | |
| 2581 | /*! |
| 2582 | Removes all data ranges. The data selection then contains no data points. |
no test coverage detected