LibreVNA-GUI: Use Qt::BackgroundRole instead of Qt::BackgroundColorRole
This commit is contained in:
parent
1c1ef29e7b
commit
f84a0f7c1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user