| 93 | } |
| 94 | |
| 95 | void CFrmMain::slotDisconnected(const QString& szIp, const quint16 port) |
| 96 | { |
| 97 | for (int row = 0; row < m_ModelConnect.rowCount(); row++) { |
| 98 | QModelIndex index = m_ModelConnect.index(row, 0); |
| 99 | QString ip = m_ModelConnect.data(index).toString(); |
| 100 | QModelIndex indexPort = m_ModelConnect.index(row, 1); |
| 101 | QString szPort = m_ModelConnect.data(indexPort).toString(); |
| 102 | if (szIp == ip && szPort == QString::number(port)) { |
| 103 | m_ModelConnect.removeRows(row, 1); |
| 104 | break; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void CFrmMain::slotContextMenuRequested(const QPoint& pos) |
| 110 | { |
nothing calls this directly
no test coverage detected