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

Method childSelected

src/backend/worksheet/Worksheet.cpp:411–415  ·  view source on GitHub ↗

! this slot is called when a worksheet element is selected in the project explorer. emits \c itemSelected() which forwards this event to the \c WorksheetView in order to select the corresponding \c QGraphicsItem. */

Source from the content-addressed store, hash-verified

409 in order to select the corresponding \c QGraphicsItem.
410 */
411void Worksheet::childSelected(const AbstractAspect* aspect) {
412 auto* element = qobject_cast<WorksheetElement*>(const_cast<AbstractAspect*>(aspect));
413 if (element)
414 Q_EMIT itemSelected(element->graphicsItem());
415}
416
417/*!
418 this slot is called when a worksheet element is deselected in the project explorer.

Callers

nothing calls this directly

Calls 1

graphicsItemMethod · 0.45

Tested by

no test coverage detected