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

Method addValue

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

Source from the content-addressed store, hash-verified

412}
413
414void BarPlotPrivate::addValue(const KConfigGroup& group) {
415 value = new Value(QStringLiteral("value"));
416 q->addChild(value);
417 value->setHidden(true);
418 value->setcenterPositionAvailable(true);
419 if (!q->isLoading())
420 value->init(group);
421
422 q->connect(value, &Value::updatePixmapRequested, [=] {
423 updatePixmap();
424 });
425
426 q->connect(value, &Value::updateRequested, [=] {
427 updateValues();
428 });
429}
430
431ErrorBar* BarPlotPrivate::addErrorBar(const KConfigGroup& group) {
432 auto* errorBar = new ErrorBar(QStringLiteral("errorBar"), ErrorBar::Dimension::Y);

Callers 1

initMethod · 0.45

Calls 5

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

Tested by

no test coverage detected