mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
Calibration - show in tooltip
This commit is contained in:
parent
cde385935d
commit
3fae95b33f
3 changed files with 14 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue