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

Method addBackground

src/backend/worksheet/plots/cartesian/BarPlot.cpp:371–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371Background* BarPlotPrivate::addBackground(const KConfigGroup& group) {
372 auto* background = new Background(QStringLiteral("background"));
373 background->setPrefix(QLatin1String("Filling"));
374 background->setEnabledAvailable(true);
375 background->setHidden(true);
376 q->addChild(background);
377
378 if (!q->isLoading())
379 background->init(group);
380
381 q->connect(background, &Background::updateRequested, [=] {
382 updatePixmap();
383 Q_EMIT q->appearanceChanged();
384 });
385
386 backgrounds << background;
387
388 return background;
389}
390
391Line* BarPlotPrivate::addBorderLine(const KConfigGroup& group) {
392 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