LibreVNA-GUI: Use Qt::BackgroundRole instead of Qt::BackgroundColorRole

This commit is contained in:
Alexander Voronov 2023-03-25 00:27:40 +03:00
parent 1c1ef29e7b
commit f84a0f7c1a

View File

@ -13,6 +13,7 @@
#include <math.h>
#include <QDebug>
#include <QColorDialog>
#include <QActionGroup>
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;