Browse Source

searchengine: use a single string for the search results number label

adaptive-webui-19844
Gabriele 9 years ago
parent
commit
3a9cf70228
  1. 4
      src/searchengine/searchengine.cpp

4
src/searchengine/searchengine.cpp

@ -255,7 +255,7 @@ void SearchEngine::on_search_button_clicked() @@ -255,7 +255,7 @@ void SearchEngine::on_search_button_clicked()
nb_search_results = 0;
search_result_line_truncated.clear();
// Changing the text of the current label
activeSearchTab->getCurrentLabel()->setText(tr("Results") + " <i>(0)</i>:");
activeSearchTab->getCurrentLabel()->setText(tr("Results <i>(%1)</i>:", "i.e: Search results").arg(0));
// Launch search
searchProcess->start(Utils::Misc::pythonExecutable(), params, QIODevice::ReadOnly);
searchTimeout->start(180000); // 3min
@ -327,7 +327,7 @@ void SearchEngine::readSearchOutput() @@ -327,7 +327,7 @@ void SearchEngine::readSearchOutput()
search_result_line_truncated = lines_list.takeLast().trimmed();
foreach (const QByteArray &line, lines_list)
appendSearchResult(QString::fromUtf8(line));
activeSearchTab->getCurrentLabel()->setText(tr("Results") + QString::fromUtf8(" <i>(") + QString::number(nb_search_results) + QString::fromUtf8(")</i>:"));
activeSearchTab->getCurrentLabel()->setText(tr("Results <i>(%1)</i>:", "i.e: Search results").arg(nb_search_results));
}
void SearchEngine::downloadFinished(int exitcode, QProcess::ExitStatus)

Loading…
Cancel
Save