| 68 | } |
| 69 | |
| 70 | void 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 | |
| 82 | void ConnectionsTab::outboundContextMenu(const QPoint &pos) |
| 83 | { |
nothing calls this directly
no test coverage detected