! 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. */
| 409 | in order to select the corresponding \c QGraphicsItem. |
| 410 | */ |
| 411 | void 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. |
nothing calls this directly
no test coverage detected