Port to QStringLiteral operator

This commit is contained in:
Jonas Kvinge
2024-10-20 06:38:55 +02:00
parent 722035913e
commit ef9ef63f02
202 changed files with 2036 additions and 1889 deletions

View File

@@ -91,10 +91,10 @@ SmartPlaylistSearchTermWidget::SmartPlaylistSearchTermWidget(SharedPtr<Collectio
}
// Icons on the buttons
ui_->remove->setIcon(IconLoader::Load(QStringLiteral("list-remove")));
ui_->remove->setIcon(IconLoader::Load(u"list-remove"_s));
// Set stylesheet
QFile stylesheet_file(QStringLiteral(":/style/smartplaylistsearchterm.css"));
QFile stylesheet_file(u":/style/smartplaylistsearchterm.css"_s);
if (stylesheet_file.open(QIODevice::ReadOnly)) {
QString stylesheet = QString::fromLatin1(stylesheet_file.readAll());
stylesheet_file.close();
@@ -389,7 +389,7 @@ void SmartPlaylistSearchTermWidget::RelativeValueChanged() {
}
// Explain the user why he can't proceed
if (ui_->value_date_numeric1->value() >= ui_->value_date_numeric2->value()) {
QMessageBox::warning(this, QStringLiteral("Strawberry"), tr("The second value must be greater than the first one!"));
QMessageBox::warning(this, u"Strawberry"_s, tr("The second value must be greater than the first one!"));
}
// Emit the signal in any case, so the Next button will be disabled
Q_EMIT Changed();