MCPcopy Create free account
hub / github.com/KDAB/GammaRay / outboundContextMenu

Method outboundContextMenu

ui/tools/objectinspector/connectionstab.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void ConnectionsTab::outboundContextMenu(const QPoint &pos)
83{
84 const QModelIndex index = ui->outboundView->currentIndex();
85 if (!index.isValid() || index.data(ConnectionsModelRoles::ActionRole).toInt() == 0)
86 return;
87
88 QMenu menu;
89 menu.addAction(tr("Go to receiver"));
90 if (menu.exec(ui->outboundView->viewport()->mapToGlobal(pos)))
91 m_interface->navigateToReceiver(mapToSourceRow(index));
92}

Callers

nothing calls this directly

Calls 4

mapToSourceRowFunction · 0.85
isValidMethod · 0.45
dataMethod · 0.45
navigateToReceiverMethod · 0.45

Tested by

no test coverage detected