Probe and expose OSTC3 model information

This looks at the OSTC3 hw descriptor and exposes that model info as a
read-only line edit, so you can see in clear text the name of the model
of computer.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2015-09-25 00:59:03 +02:00 committed by Dirk Hohndel
parent 94a86df9a3
commit 8946c82242
3 changed files with 173 additions and 124 deletions

View file

@ -802,6 +802,7 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3()
ui.serialNoLineEdit->setText(deviceDetails->serialNo);
ui.firmwareVersionLineEdit->setText(deviceDetails->firmwareVersion);
ui.customTextLlineEdit->setText(deviceDetails->customText);
ui.modelLineEdit->setText(deviceDetails->model);
ui.diveModeComboBox->setCurrentIndex(deviceDetails->diveMode);
ui.saturationSpinBox->setValue(deviceDetails->saturation);
ui.desaturationSpinBox->setValue(deviceDetails->desaturation);