* @brief MainWindow::NotifyTabClick - Swap the active tab when a click is detected. * @param tab - The tab to swap to. */
| 316 | * @param tab - The tab to swap to. |
| 317 | */ |
| 318 | void MainWindow::NotifyTabClick(ClickableTab *tab) |
| 319 | { |
| 320 | std::string tabName; |
| 321 | |
| 322 | // |
| 323 | // The tab name is just its object name. |
| 324 | // |
| 325 | tabName = tab->objectName().toStdString(); |
| 326 | |
| 327 | // |
| 328 | // Swap the active/inactive state because of the click. |
| 329 | // |
| 330 | activeTab->SwapActiveState(); |
| 331 | activeTab = tab; |
| 332 | activeTab->SwapActiveState(); |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * @brief MainWindow::AddAlertSummary - Add an alert to the table of alerts. |
no test coverage detected