mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 00:05:41 -05:00
Add option to create partial matching RegexConf
This commit is contained in:
@@ -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()),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user