Add option to create partial matching RegexConf

This commit is contained in:
WarmUpTill 2023-01-28 16:30:49 +01:00 committed by WarmUpTill
parent 2c564b47f4
commit 483bdc237c
2 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,13 @@ RegexConfig::GetRegularExpression(const std::string &expr) const
return GetRegularExpression(QString::fromStdString(expr));
}
RegexConfig RegexConfig::PartialMatchRegexConfig()
{
RegexConfig conf;
conf._partialMatch = true;
return conf;
}
RegexConfigWidget::RegexConfigWidget(QWidget *parent)
: QWidget(parent),
_openSettings(new QPushButton()),

View File

@ -25,6 +25,8 @@ public:
QRegularExpression GetRegularExpression(const QString &) const;
QRegularExpression GetRegularExpression(const std::string &) const;
static RegexConfig PartialMatchRegexConfig();
private:
bool _enable = false;
bool _partialMatch = false;