more padding on osx to deal with scrollbar

This commit is contained in:
Damien Elmes 2009-06-15 18:31:30 +09:00
parent 1ed03b3f0b
commit bdcd0c25ac

View file

@ -992,7 +992,11 @@ your deck."""))
class PaddedScroll(QScrollArea):
def sizeHint(self):
hint = QScrollArea.sizeHint(self)
return QSize(max(hint.width(), 450), hint.height())
if sys.platform.startswith("darwin"):
m = 500
else:
m = 450
return QSize(max(hint.width(), m), hint.height())
self.decksScrollArea = PaddedScroll()
self.decksScrollArea.setFrameStyle(QFrame.NoFrame)
self.decksScrollArea.setWidgetResizable(True)