code: def refresh(self, reloadData=False, force=False):
          
          if not (self.isVisible() or force):
              self._refreshTimer.start()
              return
          
          if self.isLoading():
              return
          
          if reloadData:
              self.refreshQueryRecords()
          
          # cancel current work
          self._refreshTimer.stop()
          self.worker().cancel()
          
          if self._popup:
              self._popup.close()
          
          # grab the record set
          currset = self.currentRecordSet()
          
          self.worker().setBatched(self.isPaged())
          self.worker().setBatchSize(self.pageSize())
          
          # group the information
          if self._searchTerms:
              currset.setGroupBy(None)
              pageSize = 0
          
          # work with groups
          elif self.groupBy() and self.isGroupingActive():
              currset.setGroupBy(self.groupBy())
          
          # work with batching
          else:
              currset.setGroupBy(None)
          
          # order the information
          if self.order():
              currset.setOrdered(True)
              currset.setOrder(self.order())
          
          # for larger queries, run it through the thread
          if self.useLoader():
              loader = XLoaderWidget.start(self)
          
          # specify the columns to load
          if self.specifiedColumnsOnly():
              currset.setColumns(map(lambda x: x.name(),
                                     self.specifiedColumns()))
          
          self._loadedColumns = set(self.visibleColumns())
          
          if self.isThreadEnabled() and currset.isThreadEnabled():
              self.worker().setPreloadColumns(self._preloadColumns)
              self.loadRequested.emit(currset)
          else:
              QApplication.setOverrideCursor(Qt.WaitCursor)
              self.worker().loadRecords(currset)
              QApplication.restoreOverrideCursor()
docs: Refreshes the record list for the tree.