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 <math.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
|
#include <QActionGroup>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -747,7 +748,7 @@ QVariant SmithChartContantLineModel::data(const QModelIndex &index, int role) co
|
|||||||
auto line = chart.constantLines[index.row()];
|
auto line = chart.constantLines[index.row()];
|
||||||
switch(index.column()) {
|
switch(index.column()) {
|
||||||
case ColIndexColor:
|
case ColIndexColor:
|
||||||
if (role == Qt::BackgroundColorRole) {
|
if (role == Qt::BackgroundRole) {
|
||||||
return line.getColor();
|
return line.getColor();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user