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

Method contextMenuEvent

src/frontend/worksheet/WorksheetPreviewWidget.cpp:253–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void WorksheetPreviewWidget::contextMenuEvent(QContextMenuEvent*) {
254 const int index = ui.lwPreview->currentRow();
255 if (index == -1)
256 return;
257
258 const auto& worksheets = m_project->children<Worksheet>(AbstractAspect::ChildIndexFlag::Recursive);
259 auto* worksheet = worksheets.at(index);
260 auto* menu = worksheet->createContextMenu();
261 menu->exec(QCursor::pos());
262}
263
264void WorksheetPreviewWidget::resizeEvent(QResizeEvent*) {
265 if (width() > height())

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
createContextMenuMethod · 0.45

Tested by

no test coverage detected