Use QString() on non-translated text in collection filter widget
This commit is contained in:
@@ -66,24 +66,23 @@ CollectionFilterWidget::CollectionFilterWidget(QWidget *parent)
|
|||||||
QString available_fields = Song::kFtsColumns.join(", ").replace(QRegularExpression("\\bfts"), "");
|
QString available_fields = Song::kFtsColumns.join(", ").replace(QRegularExpression("\\bfts"), "");
|
||||||
|
|
||||||
ui_->filter->setToolTip(
|
ui_->filter->setToolTip(
|
||||||
"<html><head/><body><p>" +
|
QString("<html><head/><body><p>") +
|
||||||
tr("Prefix a word with a field name to limit the search to that field, e.g.:") +
|
tr("Prefix a word with a field name to limit the search to that field, e.g.:") +
|
||||||
" " +
|
QString(" ") +
|
||||||
"<span style=\"font-weight:600;\">" +
|
QString("<span style=\"font-weight:600;\">") +
|
||||||
tr("artist") +
|
tr("artist") +
|
||||||
":" +
|
QString(":") +
|
||||||
"</span><span style=\"font-style:italic;\">Strawbs</span>" +
|
QString("</span><span style=\"font-style:italic;\">Strawbs</span>") +
|
||||||
" " +
|
QString(" ") +
|
||||||
tr("searches the collection for all artists that contain the word") +
|
tr("searches the collection for all artists that contain the word") +
|
||||||
"Strawbs" +
|
QString(" Strawbs.") +
|
||||||
"." +
|
QString("</p><p><span style=\"font-weight:600;\">") +
|
||||||
"</p><p><span style=\"font-weight:600;\">" +
|
|
||||||
tr("Available fields") +
|
tr("Available fields") +
|
||||||
": " +
|
QString(": ") +
|
||||||
"</span><span style=\"font-style:italic;\">" +
|
"</span><span style=\"font-style:italic;\">" +
|
||||||
available_fields +
|
available_fields +
|
||||||
"</span>." +
|
QString("</span>.") +
|
||||||
"</p></body></html>"
|
QString("</p></body></html>")
|
||||||
);
|
);
|
||||||
|
|
||||||
connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed()));
|
connect(ui_->filter, SIGNAL(returnPressed()), SIGNAL(ReturnPressed()));
|
||||||
|
|||||||
Reference in New Issue
Block a user