| 1142 | } |
| 1143 | |
| 1144 | void MainWindow::portRemoveSelected() { |
| 1145 | for (int row = 0; row < m_ports->rowCount(); row++){ |
| 1146 | if (sender() == m_ports->cellWidget(row, PORT_REMOVE_COL)) { |
| 1147 | portRemoveRow(row); |
| 1148 | break; |
| 1149 | } |
| 1150 | } |
| 1151 | } |
| 1152 | |
| 1153 | void MainWindow::portPopulate(int currRow) { |
| 1154 | uint16_t port = static_cast<uint16_t>(hex2int(m_ports->item(currRow, PORT_ADDR_COL)->text())); |