def resizeEvent(self, event):
        """Schedules an item layout if resize mode is \"adjust\". Somehow this is
        needed for correctly scaling down items.

        The reason this was reimplemented was the CommentDelegate.

        :param event: the resize event
        :type event: QtCore.QEvent
        :returns: None
        :rtype: None
        :raises: None
        """
        if self.resizeMode() == self.Adjust:
            self.scheduleDelayedItemsLayout()
        return super(ListLevel, self).resizeEvent(event)
def resizeEvent ( self , event ) : if self . resizeMode ( ) == self . Adjust : self . scheduleDelayedItemsLayout ( ) return super ( ListLevel , self ) . resizeEvent ( event )
Schedules an item layout if resize mode is \"adjust\". Somehow this is
        needed for correctly scaling down items.

        The reason this was reimplemented was the CommentDelegate.

        :param event: the resize event
        :type event: QtCore.QEvent
        :returns: None
        :rtype: None
        :raises: None