summaryrefslogtreecommitdiffstats
path: root/src/xml/compat/removed_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/compat/removed_api.cpp')
-rw-r--r--src/xml/compat/removed_api.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/xml/compat/removed_api.cpp b/src/xml/compat/removed_api.cpp
new file mode 100644
index 00000000000..6214a5b3bd3
--- /dev/null
+++ b/src/xml/compat/removed_api.cpp
@@ -0,0 +1,32 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#define QT_XML_BUILD_REMOVED_API
+
+#include "qtxmlglobal.h"
+
+QT_USE_NAMESPACE
+
+#if QT_XML_REMOVED_SINCE(6, 9)
+
+#if QT_CONFIG(dom)
+
+#include "qdom.h"
+
+bool QDomNodeList::operator==(const QDomNodeList &other) const
+{
+ return comparesEqual(*this, other);
+}
+
+bool QDomNodeList::operator!=(const QDomNodeList &other) const
+{
+ return !comparesEqual(*this, other);
+}
+
+#endif // QT_CONFIG(dom)
+
+// #include <qotherheader.h>
+// // implement removed functions from qotherheader.h
+// order sections alphabetically to reduce chances of merge conflicts
+
+#endif // QT_XML_REMOVED_SINCE(6, 9)