#NEWLINE# def current_item( self ) : #NEWLINE# #INDENT# ' Returns the current filter or filter group.\n        ' #NEWLINE# item = self . filterTreeWidget . currentItem ( ) #NEWLINE# top = self . current_filter_type ( ) #NEWLINE# group = None #NEWLINE# if item : #NEWLINE# #INDENT# parent = item . parent ( ) #NEWLINE# if parent : #NEWLINE# #INDENT# if parent . parent ( ) : #NEWLINE# #INDENT# group = parent . text ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self . filter_managers [ top ] . get_item ( item . text ( 0 ) , group )