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

Method InitializeAlertsTable

PeaceMakerGUI/mainwindow.cpp:41–62  ·  view source on GitHub ↗

* @brief MainWindow::InitializeAlertsTable - Initialize the table used for alerts. */

Source from the content-addressed store, hash-verified

39 * @brief MainWindow::InitializeAlertsTable - Initialize the table used for alerts.
40 */
41void MainWindow::InitializeAlertsTable()
42{
43 QStringList headers;
44
45 this->AlertsTableSize = 0;
46
47 this->ui->AlertsTable->setColumnCount(2);
48 this->ui->AlertsTable->setRowCount(100);
49
50 headers << "Date" << "Alert Name";
51 this->ui->AlertsTable->setHorizontalHeaderLabels(headers);
52 this->ui->AlertsTable->setColumnWidth(0, 200);
53
54 InitializeCommonTable(this->ui->AlertsTable);
55
56 //
57 // Add the table as an "associated element".
58 //
59 this->ui->AlertsLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->AlertsTable));
60 this->ui->AlertsLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->OpenAlertButton));
61 this->ui->AlertsLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->DeleteAlertButton));
62}
63
64/**
65 * @brief MainWindow::InitializeProcessesTable - Initialize the processes table.

Callers

nothing calls this directly

Calls 1

AddAssociatedElementMethod · 0.80

Tested by

no test coverage detected