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

Method addMedianLine

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

Source from the content-addressed store, hash-verified

684}
685
686Line* BoxPlotPrivate::addMedianLine(const KConfigGroup& group) {
687 auto* line = new Line(QStringLiteral("medianLine"));
688 line->setPrefix(QLatin1String("MedianLine"));
689 line->setHidden(true);
690 q->addChild(line);
691 if (!q->isLoading())
692 line->init(group);
693
694 q->connect(line, &Line::updatePixmapRequested, [=] {
695 updatePixmap();
696 // Q_EMIT q->updateLegendRequested();
697 });
698
699 q->connect(line, &Line::updateRequested, [=] {
700 recalcShapeAndBoundingRect();
701 // Q_EMIT q->updateLegendRequested();
702 });
703
704 medianLines << line;
705
706 return line;
707}
708
709void BoxPlotPrivate::fillDataSpreadsheet(Spreadsheet* spreadsheet) const {
710 // index

Callers 2

initMethod · 0.80
loadMethod · 0.80

Calls 5

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

Tested by

no test coverage detected