| 1128 | } |
| 1129 | |
| 1130 | void WorksheetView::dropEvent(QDropEvent* event) { |
| 1131 | auto* plot = plotAt(event->position().toPoint()); |
| 1132 | if (!plot) |
| 1133 | return; |
| 1134 | |
| 1135 | const auto* mimeData = event->mimeData(); |
| 1136 | plot->processDropEvent(plot->project()->droppedAspects(mimeData)); |
| 1137 | |
| 1138 | // select the worksheet in the project explorer and bring the view to the foreground |
| 1139 | m_worksheet->setSelectedInView(true); // FIXME: doesn't work |
| 1140 | } |
| 1141 | |
| 1142 | // ############################################################################## |
| 1143 | // #################################### SLOTs ################################ |
nothing calls this directly
no test coverage detected