* @brief InvestigateProcessWindow::InitializeCommonTable - Common initialization across all tables. * @param table */
| 6 | * @param table |
| 7 | */ |
| 8 | void InvestigateProcessWindow::InitializeCommonTable(QTableWidget *table) |
| 9 | { |
| 10 | // |
| 11 | // Set properties that are common across tables. |
| 12 | // |
| 13 | table->horizontalHeader()->setStretchLastSection(true); |
| 14 | table->horizontalHeader()->setHighlightSections(false); |
| 15 | table->verticalHeader()->setVisible(false); |
| 16 | table->setEditTriggers(QAbstractItemView::NoEditTriggers); |
| 17 | table->setSelectionBehavior(QAbstractItemView::SelectRows); |
| 18 | table->setSelectionMode(QAbstractItemView::SingleSelection); |
| 19 | table->verticalScrollBar()->setStyleSheet("color: white;"); |
| 20 | table->setSortingEnabled(false); |
| 21 | table->setStyleSheet("background: white;"); |
| 22 | table->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed); |
| 23 | table->verticalHeader()->setDefaultSectionSize(10); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * @brief InvestigateProcessWindow::InitializeProcessInfoTable - Initialize properties for the process info table. |
nothing calls this directly
no outgoing calls
no test coverage detected