|
|
|
@ -190,9 +190,13 @@ class TcRtdButtonDelegate(VarButtonDelegate):
|
|
|
|
|
QMessageBox.Yes)
|
|
|
|
|
return
|
|
|
|
|
mv = temToMv(varType, float(value))
|
|
|
|
|
mv += float(compensation)
|
|
|
|
|
if not mv and mv != 0:
|
|
|
|
|
reply = QMessageBox.question(self.parent(),
|
|
|
|
|
'警告',
|
|
|
|
|
"输入值有误",
|
|
|
|
|
QMessageBox.Yes)
|
|
|
|
|
return
|
|
|
|
|
mv += float(compensation)
|
|
|
|
|
model.table.mvList[sender.index[0]] = mv
|
|
|
|
|
model.table.valueList[sender.index[0]] = float(value)
|
|
|
|
|
forceVars = Globals.getValue('forceVars')
|
|
|
|
|