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

Method InitializeFiltersTable

PeaceMakerGUI/mainwindow.cpp:96–119  ·  view source on GitHub ↗

* @brief MainWindow::InitializeFiltersTable - Initialize the filters table. */

Source from the content-addressed store, hash-verified

94 * @brief MainWindow::InitializeFiltersTable - Initialize the filters table.
95 */
96void 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.

Callers

nothing calls this directly

Calls 1

AddAssociatedElementMethod · 0.80

Tested by

no test coverage detected