'Reimplement Qt method'

def mousePressEvent(self, event):

    if ((event.button() == Qt.LeftButton) and (event.modifiers() & Qt.ControlModifier)):
        TextEditBaseWidget.mousePressEvent(self, event)
        cursor = self.cursorForPosition(event.pos())
        self.go_to_definition_from_cursor(cursor)
    else:
        TextEditBaseWidget.mousePressEvent(self, event)
