forked from M-Labs/artiq
1
0
Fork 0

gui.entries: fix RangeScan SpinBox size layouts

This commit is contained in:
Simon Renblad 2023-09-15 11:24:53 +08:00 committed by Sébastien Bourdeauducq
parent e45dc948e9
commit f01e654b9c
1 changed files with 3 additions and 4 deletions

View File

@ -222,9 +222,6 @@ class _RangeScan(LayoutWidget):
start = ScientificSpinBox() start = ScientificSpinBox()
start.setStyleSheet("QDoubleSpinBox {color:blue}") start.setStyleSheet("QDoubleSpinBox {color:blue}")
start.setMinimumSize(110, 0)
start.setSizePolicy(QtWidgets.QSizePolicy(
QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed))
disable_scroll_wheel(start) disable_scroll_wheel(start)
self.addWidget(start, 0, 1) self.addWidget(start, 0, 1)
@ -236,13 +233,15 @@ class _RangeScan(LayoutWidget):
stop = ScientificSpinBox() stop = ScientificSpinBox()
stop.setStyleSheet("QDoubleSpinBox {color:red}") stop.setStyleSheet("QDoubleSpinBox {color:red}")
stop.setMinimumSize(110, 0)
disable_scroll_wheel(stop) disable_scroll_wheel(stop)
self.addWidget(stop, 2, 1) self.addWidget(stop, 2, 1)
randomize = QtWidgets.QCheckBox("Randomize") randomize = QtWidgets.QCheckBox("Randomize")
self.addWidget(randomize, 3, 1) self.addWidget(randomize, 3, 1)
self.layout.setColumnStretch(0, 4)
self.layout.setColumnStretch(1, 1)
apply_properties(start) apply_properties(start)
start.setSigFigs() start.setSigFigs()
start.setRelativeStep() start.setRelativeStep()