Fix exclusion pattern tooltip text

It says "included" instead of "excluded".

Change-Id: Ib74f2adbc6e6f10a9ff79662e5be609a89fe89d6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Mitch Curtis
2023-05-19 16:55:46 +08:00
parent 861b98a76a
commit 00d156c8ca
4 changed files with 13 additions and 6 deletions

View File

@@ -540,10 +540,12 @@ QString msgExclusionPatternLabel()
return Tr::tr("Excl&usion pattern:");
}
QString msgFilePatternToolTip()
QString msgFilePatternToolTip(InclusionType inclusionType)
{
return Tr::tr("List of comma separated wildcard filters. "
"Files with file name or full file path matching any filter are included.");
return Tr::tr("List of comma separated wildcard filters. ")
+ (inclusionType == InclusionType::Included
? Tr::tr("Files with file name or full file path matching any filter are included.")
: Tr::tr("Files with file name or full file path matching any filter are excluded."));
}
QString matchCaseReplacement(const QString &originalText, const QString &replaceText)