Пример #1
0
    def icon(self, value):

        if isinstance(value, QFileInfo):
            if value.isDir():
                return self.__qprovider.icon(QtGui.QFileIconProvider.Folder)
            return self.__qprovider.icon(value)

        return PropertyIconProvider.icon(self, value)