def setData(self, index, value, role):
        """set data for a given index"""
        if (role != QtCore.Qt.EditRole):
            return False
        self.stack.push(ChangeValueCommand(index, value, self))
        return True

    # drag and drop methods
dataset/ETHPy150Open shotgunsoftware/pyqt-uploader/uploader.py/ShotgunFileModel.setData/original