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

Method addBorderLine

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

Source from the content-addressed store, hash-verified

389}
390
391Line* BarPlotPrivate::addBorderLine(const KConfigGroup& group) {
392 auto* line = new Line(QStringLiteral("line"));
393 line->setPrefix(QLatin1String("Border"));
394 line->setHidden(true);
395 q->addChild(line);
396 if (!q->isLoading())
397 line->init(group);
398
399 q->connect(line, &Line::updatePixmapRequested, [=] {
400 updatePixmap();
401 Q_EMIT q->appearanceChanged();
402 });
403
404 q->connect(line, &Line::updateRequested, [=] {
405 recalcShapeAndBoundingRect();
406 Q_EMIT q->appearanceChanged();
407 });
408
409 borderLines << line;
410
411 return line;
412}
413
414void BarPlotPrivate::addValue(const KConfigGroup& group) {
415 value = new Value(QStringLiteral("value"));

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