mirror of
https://github.com/nqrduck/nqrduck-pulseprogrammer.git
synced 2024-11-08 19:00:02 +00:00
Merge pull request #9 from kumitterer/main
Fix duration display in edit form
This commit is contained in:
commit
ae32a95205
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ class EventOptionsWidget(QWidget):
|
|||
duration_label = QLabel("Duration:")
|
||||
duration_lineedit = QLineEdit()
|
||||
unit_label = QLabel("µs")
|
||||
duration_lineedit.setText(str(self.event.duration * Decimal(1e6)))
|
||||
duration_lineedit.setText("%.16g" % (self.event.duration * Decimal(1e6)))
|
||||
duration_layout.addWidget(duration_label)
|
||||
duration_layout.addWidget(duration_lineedit)
|
||||
duration_layout.addWidget(unit_label)
|
||||
|
|
Loading…
Reference in a new issue