(self)
Set selection in groupby list according to self.gb_attrs
Set selection in groupby list according to self.gb_attrs
Set selection in groupby list according to self . gb_attrs
def _set_gb_selection(self) -> None:
        """Set selection in groupby list according to self.gb_attrs"""
        sm = self.gb_attrs_view.selectionModel()
        values = self.gb_attrs_model[:]
        with disconnected(sm.selectionChanged, self.__gb_changed):
            for val in self.gb_attrs:
                index = values.index(val)
                model_index = self.gb_attrs_model.index(index, 0)
                sm.select(model_index, QItemSelectionModel.Select)
def _set_gb_selection ( self ) -> None : sm = self . gb_attrs_view . selectionModel ( ) values = self . gb_attrs_model [ : ] with disconnected ( sm . selectionChanged , self . __gb_changed ) : for val in self . gb_attrs : index = values . index ( val ) model_index = self . gb_attrs_model . index ( index , 0 ) sm . select ( model_index , QItemSelectionModel . Select )