mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Revert previous change to only render visible widgets
Also set expandingDirections to 0
This commit is contained in:
parent
a11488322b
commit
948d071fef
@ -345,6 +345,9 @@ class FlowLayout(QLayout): # {{{
|
|||||||
QLayout.setGeometry(self, rect)
|
QLayout.setGeometry(self, rect)
|
||||||
self.do_layout(rect, apply_geometry=True)
|
self.do_layout(rect, apply_geometry=True)
|
||||||
|
|
||||||
|
def expandingDirections(self):
|
||||||
|
return Qt.Orientations(0)
|
||||||
|
|
||||||
def minimumSize(self):
|
def minimumSize(self):
|
||||||
size = QSize()
|
size = QSize()
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
@ -381,8 +384,6 @@ class FlowLayout(QLayout): # {{{
|
|||||||
gmap = {}
|
gmap = {}
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
isz, wid = item.sizeHint(), item.widget()
|
isz, wid = item.sizeHint(), item.widget()
|
||||||
if isz.isEmpty() or (wid is not None and not wid.isVisible()):
|
|
||||||
continue
|
|
||||||
hs, vs = layout_spacing(wid), layout_spacing(wid, False)
|
hs, vs = layout_spacing(wid), layout_spacing(wid, False)
|
||||||
|
|
||||||
next_x = x + isz.width() + hs
|
next_x = x + isz.width() + hs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user