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

Method InitializeCommonTable

PeaceMakerGUI/mainwindow.cpp:22–36  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

20 * @param table
21 */
22void MainWindow::InitializeCommonTable(QTableWidget *table)
23{
24 //
25 // Set properties that are common across tables.
26 //
27 table->horizontalHeader()->setStretchLastSection(true);
28 table->horizontalHeader()->setHighlightSections(false);
29 table->verticalHeader()->setVisible(false);
30 table->setEditTriggers(QAbstractItemView::NoEditTriggers);
31 table->setSelectionBehavior(QAbstractItemView::SelectRows);
32 table->setSelectionMode(QAbstractItemView::SingleSelection);
33 table->verticalScrollBar()->setStyleSheet("color: white;");
34 table->setSortingEnabled(false);
35 table->setWordWrap(true);
36}
37
38/**
39 * @brief MainWindow::InitializeAlertsTable - Initialize the table used for alerts.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected