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

Method addBackground

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

Source from the content-addressed store, hash-verified

641}
642
643Background* BoxPlotPrivate::addBackground(const KConfigGroup& group) {
644 auto* background = new Background(QStringLiteral("background"));
645 background->setPrefix(QLatin1String("Filling"));
646 background->setEnabledAvailable(true);
647 background->setHidden(true);
648 q->addChild(background);
649
650 if (!q->isLoading())
651 background->init(group);
652
653 q->connect(background, &Background::updateRequested, [=] {
654 updatePixmap();
655 // TODO: Q_EMIT q->updateLegendRequested();
656 });
657
658 backgrounds << background;
659
660 return background;
661}
662
663Line* BoxPlotPrivate::addBorderLine(const KConfigGroup& group) {
664 auto* line = new Line(QStringLiteral("line"));

Callers 2

initMethod · 0.45
loadMethod · 0.45

Calls 6

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

Tested by

no test coverage detected