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

Method addBorderLine

src/backend/worksheet/plots/cartesian/BoxPlot.cpp:663–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663Line* BoxPlotPrivate::addBorderLine(const KConfigGroup& group) {
664 auto* line = new Line(QStringLiteral("line"));
665 line->setPrefix(QLatin1String("Border"));
666 line->setHidden(true);
667 q->addChild(line);
668 if (!q->isLoading())
669 line->init(group);
670
671 q->connect(line, &Line::updatePixmapRequested, [=] {
672 updatePixmap();
673 // Q_EMIT q->updateLegendRequested();
674 });
675
676 q->connect(line, &Line::updateRequested, [=] {
677 recalcShapeAndBoundingRect();
678 // Q_EMIT q->updateLegendRequested();
679 });
680
681 borderLines << line;
682
683 return line;
684}
685
686Line* BoxPlotPrivate::addMedianLine(const KConfigGroup& group) {
687 auto* line = new Line(QStringLiteral("medianLine"));

Callers 2

initMethod · 0.45
loadMethod · 0.45

Calls 5

isLoadingMethod · 0.80
setPrefixMethod · 0.45
setHiddenMethod · 0.45
addChildMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected