MCPcopy Create free account
hub / github.com/KDE/labplot / enableLineOptimization

Method enableLineOptimization

src/backend/worksheet/plots/cartesian/XYCurve.cpp:754–761  ·  view source on GitHub ↗

! * 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. */

Source from the content-addressed store, hash-verified

752 * Used when exporting/printing the parent worksheet to disable the line optimization to get better result.
753 */
754void 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
763void XYCurve::updateValues() {
764 Q_D(XYCurve);

Callers 1

setPrintingMethod · 0.80

Calls 1

updateLinesMethod · 0.45

Tested by

no test coverage detected