From f84a0f7c1a8f93de3112afe1cd399b6207c3cd5e Mon Sep 17 00:00:00 2001 From: Alexander Voronov Date: Sat, 25 Mar 2023 00:27:40 +0300 Subject: [PATCH] LibreVNA-GUI: Use Qt::BackgroundRole instead of Qt::BackgroundColorRole --- .../PC_Application/LibreVNA-GUI/Traces/tracesmithchart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/tracesmithchart.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/tracesmithchart.cpp index 2f70049..fdab687 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/tracesmithchart.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/tracesmithchart.cpp @@ -13,6 +13,7 @@ #include #include #include +#include using namespace std; @@ -747,7 +748,7 @@ QVariant SmithChartContantLineModel::data(const QModelIndex &index, int role) co auto line = chart.constantLines[index.row()]; switch(index.column()) { case ColIndexColor: - if (role == Qt::BackgroundColorRole) { + if (role == Qt::BackgroundRole) { return line.getColor(); } break;