From 6ef891af0fc93f3cefb36fcc37a66adf59b96174 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 23 Dec 2018 22:31:22 -0500 Subject: [PATCH] Fixed inactive table highlighting --- mainwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 0ed55a7..c743dab 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -10106,6 +10106,11 @@ void MainWindow::displayBandActivity() { style = style.arg(m_config.color_table_foreground().name()); ui->tableWidgetRXAll->setStyleSheet(style); + // Set the table palette for inactive selected row + auto p = ui->tableWidgetRXAll->palette(); + p.setColor(QPalette::Inactive, QPalette::Highlight, p.color(QPalette::Active, QPalette::Highlight)); + ui->tableWidgetRXAll->setPalette(p); + // Set item fonts for(int row = 0; row < ui->tableWidgetRXAll->rowCount(); row++){ for(int col = 0; col < ui->tableWidgetRXAll->columnCount(); col++){ @@ -10340,6 +10345,11 @@ void MainWindow::displayCallActivity() { style = style.arg(m_config.color_table_foreground().name()); ui->tableWidgetCalls->setStyleSheet(style); + // Set the table palette for inactive selected row + auto p = ui->tableWidgetCalls->palette(); + p.setColor(QPalette::Inactive, QPalette::Highlight, p.color(QPalette::Active, QPalette::Highlight)); + ui->tableWidgetCalls->setPalette(p); + // Set item fonts for(int row = 0; row < ui->tableWidgetCalls->rowCount(); row++){ auto bold = ui->tableWidgetCalls->item(row, 0)->text() == "\u2691";