'Add the `page` (:class:`MenuPage`) with `name` and return it\'s index.
The `page.icon()` will be used as the icon in the tab bar.'

def addPage(self, name, page):

    icon = page.icon()
    tip = name
    if page.toolTip():
        tip = page.toolTip()
    index = self.__pages.addPage(page, name, icon, tip)
    page.triggered.connect(self.__onTriggered)
    page.hovered.connect(self.hovered)
    page.view().installEventFilter(self)
    return index
