(self)
return res
Return a list of currently selected (checked) encodings.
Return a list of currently selected (checked) encodings.
Return a list of currently selected ( checked ) encodings .
def selectedEncodings(self):
        # type: () -> List[str]
        """
        Return a list of currently selected (checked) encodings.
        """
        model = self.__model
        res = []
        for i in range(model.rowCount()):
            data = model.itemData(model.index(i, 0))
            if data.get(Qt.CheckStateRole) == Qt.Checked and \
                    EncodingNameRole in data:
                res.append(data[EncodingNameRole])
        return res
def selectedEncodings ( self ) : # type: () -> List[str] model = self . __model res = [ ] for i in range ( model . rowCount ( ) ) : data = model . itemData ( model . index ( i , 0 ) ) if data . get ( Qt . CheckStateRole ) == Qt . Checked and EncodingNameRole in data : res . append ( data [ EncodingNameRole ] ) return res