mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
pad deck browser
This commit is contained in:
parent
85a9b7c919
commit
f145855132
1 changed files with 5 additions and 1 deletions
|
@ -987,7 +987,11 @@ your deck."""))
|
|||
##########################################################################
|
||||
|
||||
def setupDeckBrowser(self):
|
||||
self.decksScrollArea = QScrollArea()
|
||||
class PaddedScroll(QScrollArea):
|
||||
def sizeHint(self):
|
||||
hint = QScrollArea.sizeHint(self)
|
||||
return QSize(max(hint.width(), 450), hint.height())
|
||||
self.decksScrollArea = PaddedScroll()
|
||||
self.decksScrollArea.setFrameStyle(QFrame.NoFrame)
|
||||
self.decksScrollArea.setWidgetResizable(True)
|
||||
self.mainWin.verticalLayout_14.insertWidget(2, self.decksScrollArea)
|
||||
|
|
Loading…
Reference in a new issue