* @brief MainWindow::InitializeFiltersTable - Initialize the filters table. */
| 94 | * @brief MainWindow::InitializeFiltersTable - Initialize the filters table. |
| 95 | */ |
| 96 | void MainWindow::InitializeFiltersTable() |
| 97 | { |
| 98 | QStringList headers; |
| 99 | |
| 100 | this->FiltersTableSize = 0; |
| 101 | this->FilesystemFiltersCount = 0; |
| 102 | this->RegistryFiltersCount = 0; |
| 103 | |
| 104 | this->ui->FiltersTable->setColumnCount(3); |
| 105 | this->ui->FiltersTable->setRowCount(0); |
| 106 | |
| 107 | headers << "Filter Type" << "Filter Flags" << "Filter Content"; |
| 108 | this->ui->FiltersTable->setHorizontalHeaderLabels(headers); |
| 109 | this->ui->FiltersTable->setColumnWidth(2, 100); |
| 110 | |
| 111 | InitializeCommonTable(this->ui->FiltersTable); |
| 112 | |
| 113 | // |
| 114 | // Add the table as an "associated element". |
| 115 | // |
| 116 | this->ui->FiltersLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->FiltersTable)); |
| 117 | this->ui->FiltersLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->AddFilterButton)); |
| 118 | this->ui->FiltersLabel->AddAssociatedElement(RCAST<QWidget*>(this->ui->DeleteFilterButton)); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * @brief MainWindow::ImportConfigFilters - One-time config filter import. |
nothing calls this directly
no test coverage detected