to fit available space (this is done by setting fixed size on the
- .. note:: the class does not support `QWidgetAction`s, separators, etc.
+ .. note:: the class does not support :class:`QWidgetAction` items,
return QSize(width, height)
def __layout(self, size):
- """Layout the buttons to fit inside size.
+ Layout the buttons to fit inside size.
def uniform_layout_helper(items, contents_rect, expanding, spacing):
- """Set fixed sizes on 'items' so they can be lay out in
- contents rect anf fil the whole space.
+ Set fixed sizes on 'items' so they can be laid out in `contents_rect`
+ and fill the whole space. The items are laid out in
+ `expanding_direction` (:class:`Qt.Orientation`) with `spacing`