Skip to content

Commit

Permalink
Merge pull request #47 from ax3l/fix-slider-settings
Browse files Browse the repository at this point in the history
Settings Sliders: Fix Float Cast
  • Loading branch information
AngelFP authored Apr 20, 2023
2 parents 9ea6b14 + fb62178 commit 83485c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualpic/ui/render_settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def setup_interface(self):
self.brightness_label.setText('{:0.2f}'.format(current_brightness))
self.brightness_slider = QtWidgets.QSlider(Qt.Horizontal)
self.brightness_slider.setRange(-100, 100)
self.brightness_slider.setValue(current_brightness*100)
self.brightness_slider.setValue(int(current_brightness*100))
self.hl_1.addWidget(self.brightness_label)
self.hl_1.addWidget(self.brightness_slider)
self.vl.addLayout(self.hl_1)
Expand All @@ -51,7 +51,7 @@ def setup_interface(self):
self.contrast_label.setText('{:0.2f}'.format(current_contrast))
self.contrast_slider = QtWidgets.QSlider(Qt.Horizontal)
self.contrast_slider.setRange(-100, 100)
self.contrast_slider.setValue(current_contrast*100)
self.contrast_slider.setValue(int(current_contrast*100))
self.hl_2.addWidget(self.contrast_label)
self.hl_2.addWidget(self.contrast_slider)
self.vl.addLayout(self.hl_2)
Expand Down

0 comments on commit 83485c4

Please sign in to comment.