Refreshes the results for the cards view of the browser.

def refreshCards( self ):
        """
        Refreshes the results for the cards view of the browser.
        """
        cards = self.cardWidget()
        factory = self.factory()
        
        self.setUpdatesEnabled(False)
        self.blockSignals(True)
        
        cards.setUpdatesEnabled(False)
        cards.blockSignals(True)
        
        cards.clear()
        QApplication.instance().processEvents()
        
        if ( self.isGroupingActive() ):
            grouping = self.records().grouped()
            for groupName, records in sorted(grouping.items()):
                self._loadCardGroup(groupName, records, cards)
            
        else:
            for record in self.records():
                widget = factory.createCard(cards, record)
                if ( not widget ):
                    continue
                
                widget.adjustSize()
                
                # create the card item
                item = QTreeWidgetItem(cards)
                item.setSizeHint(0, QSize(0, widget.height()))
                cards.setItemWidget(item, 0, widget)
        
        cards.setUpdatesEnabled(True)
        cards.blockSignals(False)
        
        self.setUpdatesEnabled(True)
        self.blockSignals(False)