! * if \c enable is set to true, enables the line optimization to reduce the total number of lines to be drawn, * disables it otherwise. On default, the line optimization is activated. * Used when exporting/printing the parent worksheet to disable the line optimization to get better result. */
| 752 | * Used when exporting/printing the parent worksheet to disable the line optimization to get better result. |
| 753 | */ |
| 754 | void XYCurve::enableLineOptimization(bool enable) { |
| 755 | Q_D(XYCurve); |
| 756 | if (d->line->style() != Qt::NoPen) { |
| 757 | d->suppressRecalc = true; |
| 758 | d->updateLines(enable); |
| 759 | d->suppressRecalc = false; |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | void XYCurve::updateValues() { |
| 764 | Q_D(XYCurve); |
no test coverage detected