diff --git a/Software/PC_Application/LibreVNA-GUI/Calibration/calibrationmeasurement.cpp b/Software/PC_Application/LibreVNA-GUI/Calibration/calibrationmeasurement.cpp index 527e574..a061291 100644 --- a/Software/PC_Application/LibreVNA-GUI/Calibration/calibrationmeasurement.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Calibration/calibrationmeasurement.cpp @@ -232,10 +232,10 @@ QTableWidgetItem *CalibrationMeasurement::OnePort::getStatisticsItem() auto ret = Base::getStatisticsItem(); if(numPoints() > 0) { if(!standard) { - ret->setBackgroundColor(Qt::red); + ret->setBackground(Qt::red); ret->setToolTip("No calibration standard assigned, unable to use this measurement"); } else if(standard->minFrequency() > points.front().frequency || standard->maxFrequency() < points.back().frequency) { - ret->setBackgroundColor(Qt::yellow); + ret->setBackground(Qt::yellow); ret->setToolTip("Usable frequency range constrained by calibration standard to "+Unit::ToString(minUsableFreq(), "Hz", " kMG", 4)+" - "+Unit::ToString(maxUsableFreq(), "Hz", " kMG", 4)); } } @@ -391,10 +391,10 @@ QTableWidgetItem *CalibrationMeasurement::TwoPort::getStatisticsItem() auto ret = Base::getStatisticsItem(); if(numPoints() > 0) { if(!standard) { - ret->setBackgroundColor(Qt::red); + ret->setBackground(Qt::red); ret->setToolTip("No calibration standard assigned, unable to use this measurement"); } else if(standard->minFrequency() > points.front().frequency || standard->maxFrequency() < points.back().frequency) { - ret->setBackgroundColor(Qt::yellow); + ret->setBackground(Qt::yellow); ret->setToolTip("Usable frequency range constrained by calibration standard to "+Unit::ToString(minUsableFreq(), "Hz", " kMG", 4)+" - "+Unit::ToString(maxUsableFreq(), "Hz", " kMG", 4)); } }