Skip to content

Commit

Permalink
Ticks not always)
Browse files Browse the repository at this point in the history
  • Loading branch information
JargeZ committed Oct 17, 2020
1 parent c8a768c commit a039bcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ntscQT.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def add_slider(self, param_name, min_val, max_val, slider_value_type=int):
slider.setMaximum(max_val)
slider.setMinimum(min_val)
slider.setMouseTracking(False)
slider.setTickPosition(QSlider.TicksLeft)
if max_val < 100 and slider_value_type == int:
slider.setTickPosition(QSlider.TicksLeft)
slider.setOrientation(QtCore.Qt.Horizontal)
slider.setObjectName(f"{param_name}")
slider.blockSignals(False)
Expand Down

0 comments on commit a039bcb

Please sign in to comment.