| 182 | } |
| 183 | |
| 184 | static void updateConnectionStatus(QTableWidget *table) |
| 185 | { |
| 186 | for (int row = 0; row < table->rowCount(); row++) { |
| 187 | auto item = table->item(row, 0); |
| 188 | if (!item) { |
| 189 | continue; |
| 190 | } |
| 191 | |
| 192 | auto weakConnection = GetWeakConnectionByQString(item->text()); |
| 193 | auto connection = weakConnection.lock(); |
| 194 | if (!connection) { |
| 195 | continue; |
| 196 | } |
| 197 | |
| 198 | UpdateItemTableRow(table, row, |
| 199 | getCellLabels(connection.get(), false)); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | static void setupTab(QTabWidget *tab) |
| 204 | { |
no test coverage detected