Example #1
0
 def minimumSize(self):  # pylint: disable=all
     size = QSize()
     for item in self._items:
         size = size.expandedTo(item.minimumSize())
     left, top, right, bottom = self.getContentsMargins()
     size += QSize(left + right, top + bottom)
     return size
Example #2
0
 def minimumSize(self):
     size = QSize()
     for item in self._item_list:
         size = size.expandedTo(item.minimumSize())
     size += QSize(2 * self.contentsMargins().top(),
                   2 * self.contentsMargins().top())
     return size
Example #3
0
    def minimumSize(self):
        size = QSize()

        for item in self.itemList:
            size = size.expandedTo(item.minimumSize())

        margin, _, _, _ = self.getContentsMargins()

        size += QSize(2 * margin, 2 * margin)
        return size
Example #4
0
    def minimumSize(self):

        size = QSize()
        for item in self.itemList:
            size = size.expandedTo(item.minimumSize())

        margins = self.contentsMargins()
        size += QSize(margins.left() + margins.right(), margins.top() + margins.bottom())

        return size