def flags(self, index):
if not index.isValid():<EOL><INDENT>return QtCore.Qt.NoItemFlags<EOL><DEDENT>item = index.internalPointer()<EOL>return item.getFlags()<EOL>
Returns the item flags for the given index.