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

Method dropEvent

src/frontend/worksheet/WorksheetView.cpp:1130–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void 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 ################################

Callers

nothing calls this directly

Calls 5

positionMethod · 0.80
droppedAspectsMethod · 0.80
processDropEventMethod · 0.45
projectMethod · 0.45
setSelectedInViewMethod · 0.45

Tested by

no test coverage detected