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

Method inboundContextMenu

ui/tools/objectinspector/connectionstab.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void ConnectionsTab::inboundContextMenu(const QPoint &pos)
71{
72 const QModelIndex index = ui->inboundView->currentIndex();
73 if (!index.isValid() || index.data(ConnectionsModelRoles::ActionRole).toInt() == 0)
74 return;
75
76 QMenu menu;
77 menu.addAction(tr("Go to sender"));
78 if (menu.exec(ui->inboundView->viewport()->mapToGlobal(pos)))
79 m_interface->navigateToSender(mapToSourceRow(index));
80}
81
82void ConnectionsTab::outboundContextMenu(const QPoint &pos)
83{

Callers

nothing calls this directly

Calls 4

mapToSourceRowFunction · 0.85
isValidMethod · 0.45
dataMethod · 0.45
navigateToSenderMethod · 0.45

Tested by

no test coverage detected