Also read value field from correct sensor on regulatorwidget
This commit is contained in:
parent
0c5603ca44
commit
d30c9546b1
1 changed files with 2 additions and 2 deletions
|
|
@ -48,6 +48,6 @@ void RegulatorWdiget::setBand(double band)
|
|||
void RegulatorWdiget::setSensor(const QModelIndex &index)
|
||||
{
|
||||
regulator_->setSensor(ui->listView->getSensorForIndex(index));
|
||||
setPoint(sensors_->getSensors()->at(index.row()).field);
|
||||
ui->doubleSpinBox_setPoint->setValue(sensors_->getSensors()->at(index.row()).field);
|
||||
setPoint(ui->listView->getSensorForIndex(index).field);
|
||||
ui->doubleSpinBox_setPoint->setValue(ui->listView->getSensorForIndex(index).field);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue