Git: Use correct flags type in grep

Change-Id: Iebd65827518576b48ff8f401612baae8350fe6a3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2018-10-08 23:19:34 +03:00
committed by Orgad Shaneh
parent c879a78c03
commit 86732dbdc0

View File

@@ -112,7 +112,7 @@ public:
QVector<Match> matches; QVector<Match> matches;
if (m_parameters.flags & FindRegularExpression) { if (m_parameters.flags & FindRegularExpression) {
const QRegularExpression::PatternOptions patternOptions = const QRegularExpression::PatternOptions patternOptions =
(m_parameters.flags & QTextDocument::FindCaseSensitively) (m_parameters.flags & FindCaseSensitively)
? QRegularExpression::NoPatternOption : QRegularExpression::CaseInsensitiveOption; ? QRegularExpression::NoPatternOption : QRegularExpression::CaseInsensitiveOption;
regexp.setPattern(m_parameters.text); regexp.setPattern(m_parameters.text);
regexp.setPatternOptions(patternOptions); regexp.setPatternOptions(patternOptions);