diff --git a/src/corelib/text/qregularexpression.cpp b/src/corelib/text/qregularexpression.cpp index 44bdc2e463..db0f6907bb 100644 --- a/src/corelib/text/qregularexpression.cpp +++ b/src/corelib/text/qregularexpression.cpp @@ -2651,13 +2651,6 @@ QDebug operator<<(QDebug debug, QRegularExpression::PatternOptions patternOption flags.append("DontCaptureOption|"); if (patternOptions & QRegularExpression::UseUnicodePropertiesOption) flags.append("UseUnicodePropertiesOption|"); -QT_WARNING_PUSH -QT_WARNING_DISABLE_DEPRECATED - if (patternOptions & QRegularExpression::OptimizeOnFirstUsageOption) - flags.append("OptimizeOnFirstUsageOption|"); - if (patternOptions & QRegularExpression::DontAutomaticallyOptimizeOption) - flags.append("DontAutomaticallyOptimizeOption|"); -QT_WARNING_POP flags.chop(1); } diff --git a/src/corelib/text/qregularexpression.h b/src/corelib/text/qregularexpression.h index 30bdcdd4de..abe94ccb9e 100644 --- a/src/corelib/text/qregularexpression.h +++ b/src/corelib/text/qregularexpression.h @@ -73,8 +73,9 @@ public: InvertedGreedinessOption = 0x0010, DontCaptureOption = 0x0020, UseUnicodePropertiesOption = 0x0040, - OptimizeOnFirstUsageOption Q_DECL_ENUMERATOR_DEPRECATED_X("This option does not have any effect since Qt 5.12") = 0x0080, - DontAutomaticallyOptimizeOption Q_DECL_ENUMERATOR_DEPRECATED_X("This option does not have any effect since Qt 5.12") = 0x0100, + // Formerly (no-ops deprecated in 5.12, removed 6.0): + // OptimizeOnFirstUsageOption = 0x0080, + // DontAutomaticallyOptimizeOption = 0x0100, }; Q_DECLARE_FLAGS(PatternOptions, PatternOption) @@ -110,8 +111,9 @@ public: enum MatchOption { NoMatchOption = 0x0000, - AnchoredMatchOption Q_DECL_ENUMERATOR_DEPRECATED_X("Use AnchorAtOffsetMatchOption instead") = 0x0001, AnchorAtOffsetMatchOption = 0x0001, + AnchoredMatchOption Q_DECL_ENUMERATOR_DEPRECATED_X( + "Use AnchorAtOffsetMatchOption instead") = AnchorAtOffsetMatchOption, // Rename@Qt6.0 DontCheckSubjectStringMatchOption = 0x0002 }; Q_DECLARE_FLAGS(MatchOptions, MatchOption)