#NEWLINE# def flags( self , index ) : #NEWLINE# #INDENT# node = index . internalPointer ( ) #NEWLINE# if ( index in self . categories ) : #NEWLINE# #INDENT# return QtCore . Qt . ItemIsEnabled #NEWLINE# #UNINDENT# return ( QtCore . Qt . ItemIsSelectable | QtCore . Qt . ItemIsEnabled )