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

Method handleChildAspectAdded

src/backend/datapicker/Datapicker.cpp:312–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void Datapicker::handleChildAspectAdded(const AbstractAspect* aspect) {
313 const auto* addedPoint = qobject_cast<const DatapickerPoint*>(aspect);
314 if (addedPoint) {
315 QGraphicsItem* item = addedPoint->graphicsItem();
316 Q_ASSERT(item != nullptr);
317 Q_ASSERT(m_image != nullptr);
318 m_image->scene()->addItem(item);
319 }
320}
321
322void Datapicker::setColorPalette(const KConfig& config) {
323 if (config.hasGroup(QStringLiteral("Theme"))) {

Callers

nothing calls this directly

Calls 2

graphicsItemMethod · 0.45
sceneMethod · 0.45

Tested by

no test coverage detected