Logo Search packages:      
Sourcecode: dc-qt version File versions  Download package

void SearchTableModel::onSearchResult ( int  session,
const SearchEntry &  sr 
) [slot]

Called when search results have been received. Updates the model by adding the result and notifies all views that data has been added.

Definition at line 33 of file searchtablemodel.cpp.

References filteredResults.

Referenced by SearchWidget::searchResults().

      int n = filteredResults.size();
      sortedInsert( entry );
      // Tell the views that data we have added a row
      if(n!=filteredResults.size()) emit layoutChanged();

Generated by  Doxygen 1.6.0   Back to index