mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
display error flags in statusbar (overload/unlock/unlevel)
This commit is contained in:
parent
6d6f0843e9
commit
e3f072b307
15 changed files with 89 additions and 13 deletions
|
|
@ -10,8 +10,10 @@ TraceEditDialog::TraceEditDialog(Trace &t, QWidget *parent) :
|
|||
trace(t)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->vFactor->setPrecision(3);
|
||||
ui->name->setText(t.name());
|
||||
ui->color->setColor(trace.color());
|
||||
ui->vFactor->setValue(t.velocityFactor());
|
||||
connect(ui->color, &ColorPickerButton::colorChanged, [=](const QColor& color){
|
||||
trace.setColor(color);
|
||||
});
|
||||
|
|
@ -109,6 +111,7 @@ TraceEditDialog::~TraceEditDialog()
|
|||
void TraceEditDialog::on_buttonBox_accepted()
|
||||
{
|
||||
trace.setName(ui->name->text());
|
||||
trace.setVelocityFactor(ui->vFactor->value());
|
||||
if(!trace.isCalibration()) {
|
||||
// only apply changes if it is not a calibration trace
|
||||
if (ui->bFile->isChecked()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue