MCPcopy Create free account
hub / github.com/D4stiny/PeaceMaker / NotifyTabClick

Method NotifyTabClick

PeaceMakerGUI/mainwindow.cpp:318–333  ·  view source on GitHub ↗

* @brief MainWindow::NotifyTabClick - Swap the active tab when a click is detected. * @param tab - The tab to swap to. */

Source from the content-addressed store, hash-verified

316 * @param tab - The tab to swap to.
317 */
318void 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.

Callers 1

mousePressEventMethod · 0.80

Calls 1

SwapActiveStateMethod · 0.80

Tested by

no test coverage detected