Browse Source

- Display "Unknown" in search engine result columns where value is -1

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
ecc41fbc60
  1. 3
      src/searchEngine.cpp

3
src/searchEngine.cpp

@ -425,6 +425,9 @@ void SearchEngine::appendSearchResult(QString line){ @@ -425,6 +425,9 @@ void SearchEngine::appendSearchResult(QString line){
int row = SearchListModel->rowCount();
SearchListModel->insertRow(row);
for(int i=0; i<5; ++i){
if(parts.at(i).toFloat() == -1)
SearchListModel->setData(SearchListModel->index(row, i), tr("Unknown"));
else
SearchListModel->setData(SearchListModel->index(row, i), QVariant(parts.at(i)));
}
// Add url to searchResultsUrls associative array

Loading…
Cancel
Save