mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 00:05:41 -05:00
Add more tests
This commit is contained in:
@@ -37,6 +37,16 @@ void RegexConfig::CreateBackwardsCompatibleRegex(bool enable, bool setOptions)
|
||||
}
|
||||
}
|
||||
|
||||
QRegularExpression::PatternOptions RegexConfig::GetPatternOptions() const
|
||||
{
|
||||
return _options;
|
||||
}
|
||||
|
||||
void RegexConfig::SetPatternOptions(QRegularExpression::PatternOptions options)
|
||||
{
|
||||
_options = options;
|
||||
}
|
||||
|
||||
QRegularExpression RegexConfig::GetRegularExpression(const QString &expr) const
|
||||
{
|
||||
if (_partialMatch) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include "obs-data.h"
|
||||
#include "export-symbol-helper.hpp"
|
||||
|
||||
#include <obs-data.h>
|
||||
#include <QWidget>
|
||||
#include <QCheckBox>
|
||||
#include <QPushButton>
|
||||
@@ -23,11 +24,10 @@ public:
|
||||
|
||||
EXPORT bool Enabled() const { return _enable; }
|
||||
EXPORT void SetEnabled(bool enable) { _enable = enable; }
|
||||
EXPORT void CreateBackwardsCompatibleRegex(bool, bool = true);
|
||||
EXPORT QRegularExpression::PatternOptions GetPatternOptions() const
|
||||
{
|
||||
return _options;
|
||||
};
|
||||
EXPORT void CreateBackwardsCompatibleRegex(bool enable,
|
||||
bool setOptions = true);
|
||||
EXPORT QRegularExpression::PatternOptions GetPatternOptions() const;
|
||||
void SetPatternOptions(QRegularExpression::PatternOptions);
|
||||
EXPORT QRegularExpression GetRegularExpression(const QString &) const;
|
||||
EXPORT QRegularExpression
|
||||
GetRegularExpression(const std::string &) const;
|
||||
|
||||
Reference in New Issue
Block a user