(self, event)
override to give user control over header back
override to give user control over header back
override to give user control over header back
def resizeEvent(self, event):  # pylint: disable=invalid-name
        """ override to give user control over header back
        """
        super(DwarfListView, self).resizeEvent(event)
        header = self.header()
        resize_mode = (QHeaderView.ResizeToContents | QHeaderView.Interactive)
        if header:
            for col in range(header.count()):
                if header.sectionResizeMode(col) == resize_mode:
                    header.setSectionResizeMode(
                        col, QHeaderView.ResizeToContents)
                    width = header.sectionSize(col)
                    header.setSectionResizeMode(col, QHeaderView.Interactive)
                    header.resizeSection(col, width)
def resizeEvent ( self , event ) : # pylint: disable=invalid-name super ( DwarfListView , self ) . resizeEvent ( event ) header = self . header ( ) resize_mode = ( QHeaderView . ResizeToContents | QHeaderView . Interactive ) if header : for col in range ( header . count ( ) ) : if header . sectionResizeMode ( col ) == resize_mode : header . setSectionResizeMode ( col , QHeaderView . ResizeToContents ) width = header . sectionSize ( col ) header . setSectionResizeMode ( col , QHeaderView . Interactive ) header . resizeSection ( col , width )