Exemple #1
0
    def setGeometry(self, rect):
        """ Layout the contents of the layout manager based upon the area
            provided by the specified rectangle.
        """
        QLayout.setGeometry(self, rect)

        self.layout.perform_layout(rect.x(), rect.y(), rect.width(), rect.height())
 def setGeometry(self, r):
     QLayout.setGeometry(self, r)
     new_height = self._layoutChildren(r)
     if new_height != self._min_h:
         self._updateMinimumSize(new_height)
         i = 0
         wid = self.parentWidget()
         while wid is not None:
             wid.updateGeometry()
             wid = wid.parentWidget()
             i += 1
Exemple #3
0
 def setGeometry(self, r):
     QLayout.setGeometry(self, r)
     new_height = self._layoutChildren(r)
     if new_height != self._min_h:
         self._updateMinimumSize(new_height)
         i = 0
         wid = self.parentWidget()
         while wid is not None:
             wid.updateGeometry()
             wid = wid.parentWidget()
             i += 1
 def __init__(self, parent=None):
     QLayout.__init__(self, parent)
     self._items = []
     self._updateMinimumSize()
Exemple #5
0
 def __init__(self, parent=None):
     QLayout.__init__(self, parent)
     self._items = []
     self._updateMinimumSize()
Exemple #6
0
    def invalidate(self):
        QLayout.invalidate(self)

        self._cached_size_hint = None
Exemple #7
0
 def setGeometry(self, rect):
     QLayout.setGeometry(self, rect)
     self.doLayout(rect)
Exemple #8
0
 def __init__(self, column_count, *args):
     QLayout.__init__(self, *args)
     self.items = []
     self.column_count = column_count
     self.setMargin(0)
     self.setSpacing(-1)