'Popup on top of the tab to edit its name.'

def __init__(self, parent, split_char, split_index):

    self.main = (parent if (parent is not None) else self.parent())
    self.split_char = split_char
    self.split_index = split_index
    self.tab_index = None
    QLineEdit.__init__(self, parent=None)
    self.editingFinished.connect(self.edit_finished)
    self.installEventFilter(self)
    if PYQT5:
        self.setWindowFlags(((Qt.Popup | Qt.FramelessWindowHint) | Qt.NoDropShadowWindowHint))
    else:
        self.setWindowFlags((Qt.Popup | Qt.FramelessWindowHint))
    self.setFrame(False)
    self.setTextMargins(9, 0, 0, 0)
