'Override Qt method to trigger the tab name editor.'

def mouseDoubleClickEvent(self, event):

    if ((self.rename_tabs is True) and (event.buttons() == Qt.MouseButtons(Qt.LeftButton))):
        index = self.tabAt(event.pos())
        if (index >= 0):
            self.tab_name_editor.edit_tab(index)
    else:
        QTabBar.mouseDoubleClickEvent(self, event)
