mirror of
https://github.com/wassname/sloth.git
synced 2026-06-29 07:58:53 +08:00
Fix takeAt of FloatingLayout
This commit is contained in:
@@ -20,7 +20,10 @@ class FloatingLayout(QLayout):
|
||||
def takeAt(self, index):
|
||||
if index < 0 or index >= len(self._items):
|
||||
return None
|
||||
return self._items[index]
|
||||
else:
|
||||
item = self._items[index]
|
||||
del self._items[index]
|
||||
return item
|
||||
|
||||
def sizeHint(self):
|
||||
return self.minimumSize()
|
||||
|
||||
Reference in New Issue
Block a user