mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
Calibration - minor changes
This commit is contained in:
parent
3fae95b33f
commit
18526407fb
3 changed files with 14 additions and 9 deletions
|
|
@ -287,7 +287,7 @@ VNA::VNA(AppWindow *window)
|
|||
|
||||
// Calibration toolbar (and populate calibration menu)
|
||||
auto tb_cal = new QToolBar("Calibration");
|
||||
QLabel *cbEnableCal_label = new QLabel("Calibration:");
|
||||
QLabel *cbEnableCal_label = new QLabel("Calibration:"); // correct object type
|
||||
tb_cal->addWidget(cbEnableCal_label);
|
||||
auto cbEnableCal = new QCheckBox;
|
||||
tb_cal->addWidget(cbEnableCal);
|
||||
|
|
@ -327,8 +327,8 @@ VNA::VNA(AppWindow *window)
|
|||
cbEnableCal->blockSignals(true);
|
||||
calDisable->setChecked(true);
|
||||
cbEnableCal->setCheckState(Qt::CheckState::Unchecked);
|
||||
cbEnableCal_label->setStyleSheet("background-color: yellow");
|
||||
cbEnableCal_label->setToolTip("none");
|
||||
cbEnableCal_label->setStyleSheet("background-color: yellow"); // visually indicate loss of calibration
|
||||
cbEnableCal_label->setToolTip("none"); // cal. file unknown at this moment
|
||||
cbType->blockSignals(false);
|
||||
cbEnableCal->blockSignals(false);
|
||||
calImportTerms->setEnabled(false);
|
||||
|
|
@ -346,8 +346,8 @@ VNA::VNA(AppWindow *window)
|
|||
}
|
||||
}
|
||||
cbEnableCal->setCheckState(Qt::CheckState::Checked);
|
||||
cbEnableCal_label->setStyleSheet("");
|
||||
cbEnableCal_label->setToolTip(cal.getCurrentCalibrationFile());
|
||||
cbEnableCal_label->setStyleSheet(""); // restore default look of widget
|
||||
cbEnableCal_label->setToolTip(cal.getCurrentCalibrationFile()); // on hover, show name of active cal. file
|
||||
cbType->blockSignals(false);
|
||||
cbEnableCal->blockSignals(false);
|
||||
calImportTerms->setEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue