#NEWLINE# def current_filter_group( self ) : #NEWLINE# #INDENT# ' Return the name of the currently selected filter group. If a\n        from inside a group is selected, the name of that group is returned.\n        If a group or no item is selected, None is returned.\n        ' #NEWLINE# item = self . filterTreeWidget . currentItem ( ) #NEWLINE# group = None #NEWLINE# if item : #NEWLINE# #INDENT# parent = item . parent ( ) #NEWLINE# if self : #NEWLINE# #INDENT# if parent . parent ( ) : #NEWLINE# #INDENT# group = parent . text ( 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( item . data ( 1 , Qt . UserRole ) == self . FilterTreeRoleGroup ) : #NEWLINE# #INDENT# group = item . text ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return group