FilterParser: Update tooltip

Fixes #1680
This commit is contained in:
Jonas Kvinge
2025-02-18 17:08:17 +01:00
parent 0cd0f7f2e7
commit e588896729

View File

@@ -476,15 +476,18 @@ float FilterParser::ParseRating(const QString &rating_str) {
QString FilterParser::ToolTip() { QString FilterParser::ToolTip() {
return QLatin1String("<html><head/><body><p>") + return "<html><head/><body><p>"_L1 +
QObject::tr("Prefix a search term with a field name to limit the search to that field, e.g.:") + QObject::tr("Prefix a search term with a field name to limit the search to that field, e.g.:") +
QLatin1Char(' ') + u' ' +
"<span style=\"font-weight:600;\">"_L1 + "<span style=\"font-weight:600;\">"_L1 +
QObject::tr("artist") + QObject::tr("artist") +
":</span><span style=\"font-style:italic;\">Strawbs</span> "_L1 + ":</span><span style=\"font-style:italic;\">Strawbs</span> "_L1 +
QObject::tr("searches for all artists containing the word %1.").arg("Strawbs"_L1) + QObject::tr("searches for all artists containing the word %1.").arg("Strawbs"_L1) +
"</p><p>"_L1 + "</p><p>"_L1 +
QObject::tr("A word can be excluded with a preceding \"%1\", if you need to search for a word including \"%1\", place quotes around the word.").arg("-"_L1) +
"</p><p>"_L1 +
QObject::tr("Search terms for numerical fields can be prefixed with %1 or %2 to refine the search, e.g.: ") QObject::tr("Search terms for numerical fields can be prefixed with %1 or %2 to refine the search, e.g.: ")
.arg(" =, !=, &lt;, &gt;, &lt;="_L1, "&gt;="_L1) + .arg(" =, !=, &lt;, &gt;, &lt;="_L1, "&gt;="_L1) +
"<span style=\"font-weight:600;\">"_L1 + "<span style=\"font-weight:600;\">"_L1 +