def __view__doubleClicked(self, index):
        """
        Defines the slot triggered by a View when double clicked.

        :param index: Clicked item index.
        :type index: QModelIndex
        """

        node = self.__model.get_node(index)

        if node.family == "SearchOccurence":
            file = node.parent.file
            occurence = node
        elif node.family in ("SearchFile", "ReplaceResult"):
            file = node.file
            occurence = None

        self.__highlight_occurence(file, occurence)
def __view__doubleClicked ( self , index ) : node = self . __model . get_node ( index ) if node . family == "SearchOccurence" : file = node . parent . file occurence = node elif node . family in ( "SearchFile" , "ReplaceResult" ) : file = node . file occurence = None self . __highlight_occurence ( file , occurence )
Defines the slot triggered by a View when double clicked.

        :param index: Clicked item index.
        :type index: QModelIndex