mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 20:01:08 +00:00
searchengine: use a single string for the search results number label
This commit is contained in:
parent
0f35bac605
commit
3a9cf70228
@ -255,7 +255,7 @@ void SearchEngine::on_search_button_clicked()
|
|||||||
nb_search_results = 0;
|
nb_search_results = 0;
|
||||||
search_result_line_truncated.clear();
|
search_result_line_truncated.clear();
|
||||||
// Changing the text of the current label
|
// 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
|
// Launch search
|
||||||
searchProcess->start(Utils::Misc::pythonExecutable(), params, QIODevice::ReadOnly);
|
searchProcess->start(Utils::Misc::pythonExecutable(), params, QIODevice::ReadOnly);
|
||||||
searchTimeout->start(180000); // 3min
|
searchTimeout->start(180000); // 3min
|
||||||
@ -327,7 +327,7 @@ void SearchEngine::readSearchOutput()
|
|||||||
search_result_line_truncated = lines_list.takeLast().trimmed();
|
search_result_line_truncated = lines_list.takeLast().trimmed();
|
||||||
foreach (const QByteArray &line, lines_list)
|
foreach (const QByteArray &line, lines_list)
|
||||||
appendSearchResult(QString::fromUtf8(line));
|
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)
|
void SearchEngine::downloadFinished(int exitcode, QProcess::ExitStatus)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user