| 80 | } |
| 81 | |
| 82 | void 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 | } |
nothing calls this directly
no test coverage detected