def setCurrentIndex(self, index):
        """
        Sets the current index on self and on the tab bar to keep the two insync.

        :param     index | <int>
        """
        super(XViewPanel, self).setCurrentIndex(index)
        self.tabBar().setCurrentIndex(index)
Sets the current index on self and on the tab bar to keep the two insync.

        :param     index | <int>