mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Selectable marker data format, preparation for showing marker data on graphs
This commit is contained in:
parent
2d13fdfe5e
commit
036837a6ae
16 changed files with 437 additions and 188 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <QMimeData>
|
||||
#include <QDebug>
|
||||
#include <QMenu>
|
||||
#include "unit.h"
|
||||
|
||||
TraceWidget::TraceWidget(TraceModel &model, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
|
|
@ -171,7 +172,7 @@ void TraceWidget::SetupSCPI()
|
|||
if(std::isnan(d.x)) {
|
||||
return "NaN";
|
||||
}
|
||||
return QString::number(20*log10(d.y.real()));
|
||||
return QString::number(Unit::dB(d.y.real()));
|
||||
} else {
|
||||
if(std::isnan(d.x)) {
|
||||
return "NaN,NaN";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue