summaryrefslogtreecommitdiffstats
path: root/src/xml/compat/removed_api.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2024-11-04 16:45:17 +0100
committerMarc Mutz <[email protected]>2024-11-06 20:18:05 +0100
commit77d640aa0970ffc80c13cb1d8f2581abc84e2cd3 (patch)
tree7499abc71231794b34048b0015ac259b8bfe8b87 /src/xml/compat/removed_api.cpp
parent3fce04157dbba1232d96821dbb166c6a5dc467a8 (diff)
QDomNodeList: port to compare helpers
Just this one, for now, as an example, and to establish QtXml's removed_api.cpp. The QDomNode hierarchy will follow in a subsequent patch. Task-number: QTBUG-130846 Change-Id: Ib095481cc57471b303cd8251194488d9875edcfb Reviewed-by: Ivan Solovev <[email protected]>
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)