Skip to content
Snippets Groups Projects
Commit cf6162f3 authored by Lan Dam's avatar Lan Dam
Browse files

change back conversion widget to QLineEdit because conversion can go down to...

change back conversion widget to QLineEdit because conversion can go down to 1.0e-06, the range of value are large
parent 4d87d055
No related branches found
No related tags found
1 merge request!211Implement dialog to add/edit a single channel in database
......@@ -72,14 +72,14 @@ class AddEditSingleChannelDialog(QDialog):
"added to channel name to be displayed")
# convert factor to change from count to actual value
self.convesion_lnedit = QtWidgets.QLineEdit(self)
self.convesion_lnedit.setPlaceholderText(
self.conversion_lnedit = QtWidgets.QLineEdit(self)
self.conversion_lnedit.setPlaceholderText(
"to convert from count to actual value"
)
validator = QtGui.QDoubleValidator(0.0, 5.0, 6)
validator.setNotation(QtGui.QDoubleValidator.StandardNotation)
self.convesion_lnedit.setValidator(validator)
self.convesion_lnedit.setText('1')
self.conversion_lnedit.setValidator(validator)
self.conversion_lnedit.setText('1')
# channel's unit
self.unit_lnedit = QtWidgets.QLineEdit(self)
......@@ -224,7 +224,7 @@ class AddEditSingleChannelDialog(QDialog):
self.label_lnedit.setText(self.channel_info['label'])
self.convesion_lnedit.setText(
self.conversion_lnedit.setText(
str(float(self.channel_info['convertFactor'])))
self.unit_lnedit.setText(self.channel_info['unit'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment