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

Method InitializeCommonTable

PeaceMakerGUI/InvestigateProcessWindow.cpp:8–24  ·  view source on GitHub ↗

* @brief InvestigateProcessWindow::InitializeCommonTable - Common initialization across all tables. * @param table */

Source from the content-addressed store, hash-verified

6 * @param table
7 */
8void 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected