* @brief MainWindow::InitializeCommonTable - Common initialization across all tables. * @param table */
| 20 | * @param table |
| 21 | */ |
| 22 | void 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. |
nothing calls this directly
no outgoing calls
no test coverage detected