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

Method addLine

src/backend/worksheet/plots/cartesian/LollipopPlot.cpp:356–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356Line* LollipopPlotPrivate::addLine(const KConfigGroup& group) {
357 auto* line = new Line(QString());
358 line->setHidden(true);
359 q->addChild(line);
360 if (!q->isLoading())
361 line->init(group);
362
363 q->connect(line, &Line::updatePixmapRequested, [=] {
364 updatePixmap();
365 Q_EMIT q->appearanceChanged();
366 });
367
368 q->connect(line, &Line::updateRequested, [=] {
369 recalcShapeAndBoundingRect();
370 Q_EMIT q->appearanceChanged();
371 });
372
373 lines << line;
374
375 return line;
376}
377
378Symbol* LollipopPlotPrivate::addSymbol(const KConfigGroup& group) {
379 auto* symbol = new Symbol(QString());

Callers 2

initMethod · 0.45
loadMethod · 0.45

Calls 5

isLoadingMethod · 0.80
QStringClass · 0.50
setHiddenMethod · 0.45
addChildMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected