code: def rebuild( self ):
          
          self._buildData.clear()
          self._dateGrid.clear()
          self._dateTimeGrid.clear()
          
          curr_min = self._minimumDate
          curr_max = self._maximumDate
          
          self._maximumDate = QDate()
          self._minimumDate = QDate()
          
          self.markForRebuild(False)
          
          # rebuilds the month view
          if ( self.currentMode() == XCalendarScene.Mode.Month ):
              self.rebuildMonth()
          elif ( self.currentMode() in (XCalendarScene.Mode.Week,
                                        XCalendarScene.Mode.Day)):
              self.rebuildDays()
          
          # rebuild the items in the scene
          items = sorted(self.items())
          for item in items:
              item.setPos(0, 0)
              item.hide()
          
          for item in items:
              if ( isinstance(item, XCalendarItem) ):
                  item.rebuild()
          
          if ( curr_min != self._minimumDate or curr_max != self._maximumDate ):
              parent = self.parent()
              if ( parent and not parent.signalsBlocked() ):
                  parent.dateRangeChanged.emit(self._minimumDate, 
                                               self._maximumDate)
docs: Rebuilds the information for this scene.