Sets the current index on self and on the tab bar to keep the two insync.

        :param     index | <int>

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)