+ Q_UNUSED(size);
+ TRACE;
+ progress->showWait();
+}
+
+void SearchResultsDialog::onEndDownload(int status, const Search::Result &result,
+ const QString &fileName)
+{
+ Q_UNUSED(result);
+ TRACE;
+ progress->reset();
+ if (Search::Ok == status) {
+ Library::instance()->add(fileName);
+ int row = results.indexOf(result);
+ if (-1 != row) {
+ results.removeAt(row);
+ model()->removeRow(row);
+ }
+ Platform::instance()->
+ information(tr("Downloaded \"%1\"\nand added to the "
+ "library").arg(result.title), this);
+ }