Calibration - show in tooltip

This commit is contained in:
Zoran Kostic 2020-11-30 18:16:33 +01:00
parent cde385935d
commit 3fae95b33f
3 changed files with 14 additions and 1 deletions

View file

@ -287,7 +287,7 @@ VNA::VNA(AppWindow *window)
// Calibration toolbar (and populate calibration menu)
auto tb_cal = new QToolBar("Calibration");
auto cbEnableCal_label = new QLabel("Calibration:");
QLabel *cbEnableCal_label = new QLabel("Calibration:");
tb_cal->addWidget(cbEnableCal_label);
auto cbEnableCal = new QCheckBox;
tb_cal->addWidget(cbEnableCal);
@ -328,6 +328,7 @@ VNA::VNA(AppWindow *window)
calDisable->setChecked(true);
cbEnableCal->setCheckState(Qt::CheckState::Unchecked);
cbEnableCal_label->setStyleSheet("background-color: yellow");
cbEnableCal_label->setToolTip("none");
cbType->blockSignals(false);
cbEnableCal->blockSignals(false);
calImportTerms->setEnabled(false);
@ -346,6 +347,7 @@ VNA::VNA(AppWindow *window)
}
cbEnableCal->setCheckState(Qt::CheckState::Checked);
cbEnableCal_label->setStyleSheet("");
cbEnableCal_label->setToolTip(cal.getCurrentCalibrationFile());
cbType->blockSignals(false);
cbEnableCal->blockSignals(false);
calImportTerms->setEnabled(true);