Launches an editor for the component, if the mouse cursor is over an item

def mouseDoubleClickEvent(self, event):
        """Launches an editor for the component, if the mouse cursor is over an item"""
        if self.mode == BuildMode:
            if event.button() == QtCore.Qt.LeftButton:
                index = self.indexAt(event.pos())
                self.edit(index)