Skip to content

Commit

Permalink
starting QScrollArea ozmartian#3
Browse files Browse the repository at this point in the history
  • Loading branch information
morzh committed Jun 8, 2022
1 parent 1ee6fa6 commit 8fb396b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vidcutter/videocutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,10 @@ def __init__(self, parent: QMainWindow):
self.setLayout(layout)
self.videoSlider.initStyle()


windowSize = self.parent.size()
print(windowSize)
self.sliderWidgetScroll.setFixedWidth(windowSize.width())
self.videoSlider.setFixedWidth(windowSize.width() - 22)

def clip(self, val, min_, max_):
return min_ if val < min_ else max_ if val > max_ else val
Expand Down

0 comments on commit 8fb396b

Please sign in to comment.