* @brief MainWindow::InitializeAlertsTable - Initialize the table used for alerts. */
| 39 | * @brief MainWindow::InitializeAlertsTable - Initialize the table used for alerts. |
| 40 | */ |
| 41 | void 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. |
nothing calls this directly
no test coverage detected