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