! this slot is called when a worksheet element is deselected in the project explorer. emits \c itemDeselected() which forwards this event to \c WorksheetView in order to deselect the corresponding \c QGraphicsItem. */
| 420 | in order to deselect the corresponding \c QGraphicsItem. |
| 421 | */ |
| 422 | void Worksheet::childDeselected(const AbstractAspect* aspect) { |
| 423 | auto* element = qobject_cast<WorksheetElement*>(const_cast<AbstractAspect*>(aspect)); |
| 424 | if (element) |
| 425 | Q_EMIT itemDeselected(element->graphicsItem()); |
| 426 | } |
| 427 | |
| 428 | /*! |
| 429 | * Emits the signal to select or to deselect the aspect corresponding to \c QGraphicsItem \c item in the project explorer, |
nothing calls this directly
no test coverage detected