mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Revise string literal usage
This commit covers src/gui folder. PR #16757.
This commit is contained in:
parent
746fe7ba09
commit
75c93d72be
36 changed files with 275 additions and 280 deletions
|
@ -796,7 +796,7 @@ void PropertiesWidget::configure()
|
|||
delete m_speedWidget;
|
||||
}
|
||||
|
||||
const auto displayText = QString::fromLatin1("<center><b>%1</b><p>%2</p></center>")
|
||||
const auto displayText = u"<center><b>%1</b><p>%2</p></center>"_qs
|
||||
.arg(tr("Speed graphs are disabled"), tr("You can enable it in Advanced Options"));
|
||||
auto *label = new QLabel(displayText, this);
|
||||
label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
|
||||
|
@ -812,7 +812,7 @@ void PropertiesWidget::askWebSeed()
|
|||
// Ask user for a new url seed
|
||||
const QString urlSeed = AutoExpandableDialog::getText(this, tr("New URL seed", "New HTTP source"),
|
||||
tr("New URL seed:"), QLineEdit::Normal,
|
||||
QLatin1String("http://www."), &ok);
|
||||
u"http://www."_qs, &ok);
|
||||
if (!ok) return;
|
||||
qDebug("Adding %s web seed", qUtf8Printable(urlSeed));
|
||||
if (!m_ui->listWebSeeds->findItems(urlSeed, Qt::MatchFixedString).empty())
|
||||
|
@ -871,7 +871,7 @@ void PropertiesWidget::editWebSeed()
|
|||
|
||||
if (!m_ui->listWebSeeds->findItems(newSeed, Qt::MatchFixedString).empty())
|
||||
{
|
||||
QMessageBox::warning(this, QLatin1String("qBittorrent"),
|
||||
QMessageBox::warning(this, u"qBittorrent"_qs,
|
||||
tr("This URL seed is already in the list."),
|
||||
QMessageBox::Ok);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue