mirror of https://github.com/procxx/kepka.git
Fix deprecation warning on Qt 5.12+
See https://doc.qt.io/QT-5/qregularexpression.html#PatternOption-enum about deprecated QRegularExpression enum values.
This commit is contained in:
parent
7a88eeda6a
commit
3b5af27889
|
@ -69,7 +69,10 @@ enum class RegExOption {
|
||||||
InvertedGreediness = QRegularExpression::InvertedGreedinessOption,
|
InvertedGreediness = QRegularExpression::InvertedGreedinessOption,
|
||||||
DontCapture = QRegularExpression::DontCaptureOption,
|
DontCapture = QRegularExpression::DontCaptureOption,
|
||||||
UseUnicodeProperties = QRegularExpression::UseUnicodePropertiesOption,
|
UseUnicodeProperties = QRegularExpression::UseUnicodePropertiesOption,
|
||||||
#ifndef OS_MAC_OLD
|
#if (!defined(OS_MAC_OLD) && ((QT_VERSION < QT_VERSION_CHECK(5, 12, 0)) && (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))))
|
||||||
|
/// @note These flags are introduced since Qt 5.4 and become deprecated in Qt 5.12, so we must
|
||||||
|
/// drop it conditionally.
|
||||||
|
/// See https://doc.qt.io/QT-5/qregularexpression.html#PatternOption-enum for details.
|
||||||
OptimizeOnFirstUsage = QRegularExpression::OptimizeOnFirstUsageOption,
|
OptimizeOnFirstUsage = QRegularExpression::OptimizeOnFirstUsageOption,
|
||||||
DontAutomaticallyOptimize = QRegularExpression::DontAutomaticallyOptimizeOption,
|
DontAutomaticallyOptimize = QRegularExpression::DontAutomaticallyOptimizeOption,
|
||||||
#endif // OS_MAC_OLD
|
#endif // OS_MAC_OLD
|
||||||
|
|
Loading…
Reference in New Issue