Skip to content

Commit

Permalink
Use new style slider controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic authored and phw committed Jan 30, 2024
1 parent dae6cb6 commit 47249a1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions picard/ui/options/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,8 @@ def hideEvent(self, event):
def show_tip(self, value):
self.round_value(value)
self.initStyleOption(self.opt)
try:
cc_slider = self.style.CC_Slider
except AttributeError:
cc_slider = self.style.ComplexControl.CC_Slider

try:
sc_slider_handle = self.style.SC_SliderHandle
except AttributeError:
sc_slider_handle = self.style.SubControl.SC_ScrollBarSlider
cc_slider = self.style.ComplexControl.CC_Slider
sc_slider_handle = self.style.SubControl.SC_ScrollBarSlider
rectHandle = self.style.subControlRect(cc_slider, self.opt, sc_slider_handle)

offset = self._offset * self.tagger.primaryScreen().devicePixelRatio()
Expand Down

0 comments on commit 47249a1

Please sign in to comment.