summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2024-01-23 15:14:18 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2024-01-24 10:17:17 +0100
commit843b18a3bf4cb623fb159e1fd26721fba7d8ec86 (patch)
treeb0c61c711c60601c29080fd443efcf0fb5f6ea99
parentfd8224cdb815d16d481d21b65871887e13aae98c (diff)
Minor tweaks for new Options type
Lock the underlying type for bic safety, and add a no-flags value. Pick-to: 6.7 Change-Id: I9ffeeef5876d323ae91ba49bcc0b695af2c21b35 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/svg/doc/src/qsvgglobal.qdoc2
-rw-r--r--src/svg/qtsvgglobal.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/svg/doc/src/qsvgglobal.qdoc b/src/svg/doc/src/qsvgglobal.qdoc
index 626c076..658b14c 100644
--- a/src/svg/doc/src/qsvgglobal.qdoc
+++ b/src/svg/doc/src/qsvgglobal.qdoc
@@ -16,6 +16,8 @@
files. Multiple flags can be combined into the QFlags type
QtSvg::Options.
+ \value NoOption The null value. This is the default for QtSvg::Options.
+
\value Tiny12FeaturesOnly Strictly and exclusively parse only tags that are
part of the \l{http://www.w3.org/TR/SVGMobile12}
{SVG 1.2 Tiny} Static Feature set.
diff --git a/src/svg/qtsvgglobal.h b/src/svg/qtsvgglobal.h
index 7f35fd7..8154e0a 100644
--- a/src/svg/qtsvgglobal.h
+++ b/src/svg/qtsvgglobal.h
@@ -12,8 +12,8 @@ QT_BEGIN_NAMESPACE
namespace QtSvg {
-enum Option
-{
+enum Option : quint32 {
+ NoOption = 0x00,
Tiny12FeaturesOnly = 0x01
};
Q_DECLARE_FLAGS(Options, Option)