diff --git a/src/xmlpatterns/acceltree/qacceltree.cpp b/src/xmlpatterns/acceltree/qacceltree.cpp
index 9c26c256aa1e468567bb9ced17dda686995d6532..fca6b264bd78ef82d89ed8bc9309f8d707cfdea7 100644
--- a/src/xmlpatterns/acceltree/qacceltree.cpp
+++ b/src/xmlpatterns/acceltree/qacceltree.cpp
@@ -40,7 +40,7 @@
 #include "qatomicstring_p.h"
 #include "qcommonvalues_p.h"
 #include "qcompressedwhitespace_p.h"
-#include "qdebug_p.h"
+#include "qxmldebug_p.h"
 #include "quntypedatomic_p.h"
 #include "qxpathhelper_p.h"
 
diff --git a/src/xmlpatterns/api/qsourcelocation.cpp b/src/xmlpatterns/api/qsourcelocation.cpp
index 988569ea4f467e82105370f48c109beeab597283..1861409397ba633adb007aa25e742db839c96303 100644
--- a/src/xmlpatterns/api/qsourcelocation.cpp
+++ b/src/xmlpatterns/api/qsourcelocation.cpp
@@ -31,7 +31,7 @@
 **
 ****************************************************************************/
 
-#include "qdebug_p.h"
+#include "qxmldebug_p.h"
 
 #include "qsourcelocation.h"
 
diff --git a/src/xmlpatterns/expr/qexpression_p.h b/src/xmlpatterns/expr/qexpression_p.h
index e30d04befbc3f93404f45b9d569f4dc6033856a4..c799725303c74cea2e19e31e268798980910ef84 100644
--- a/src/xmlpatterns/expr/qexpression_p.h
+++ b/src/xmlpatterns/expr/qexpression_p.h
@@ -48,7 +48,7 @@
 #include <QSharedData>
 
 #include <private/qcppcastinghelper_p.h>
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 #include <private/qdynamiccontext_p.h>
 #include <private/qexpressiondispatch_p.h>
 #include <private/qitem_p.h>
diff --git a/src/xmlpatterns/expr/qexpressionfactory.cpp b/src/xmlpatterns/expr/qexpressionfactory.cpp
index 2c9c51a6d1811893bed6adab2c6522cb117d61c0..2afa2ccc3cc7de56e67a8892567132ad49fc4ff9 100644
--- a/src/xmlpatterns/expr/qexpressionfactory.cpp
+++ b/src/xmlpatterns/expr/qexpressionfactory.cpp
@@ -36,7 +36,7 @@
 
 #include "qcalltemplate_p.h"
 #include "qcommonsequencetypes_p.h"
-#include "qdebug_p.h"
+#include "qxmldebug_p.h"
 #include "qexpression_p.h"
 #include "qgenericstaticcontext_p.h"
 #include "qoperandsiterator_p.h"
diff --git a/src/xmlpatterns/parser/qquerytransformparser.cpp b/src/xmlpatterns/parser/qquerytransformparser.cpp
index df612ad9c474eb107570f8808ea7777b6c32658f..0ef0c452d3b249713d2ada16ef440f375720176b 100644
--- a/src/xmlpatterns/parser/qquerytransformparser.cpp
+++ b/src/xmlpatterns/parser/qquerytransformparser.cpp
@@ -189,7 +189,7 @@
 #include <private/qcontextitem_p.h>
 #include <private/qcopyof_p.h>
 #include <private/qcurrentitemstore_p.h>
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 #include <private/qdelegatingnamespaceresolver_p.h>
 #include <private/qdocumentconstructor_p.h>
 #include <private/qelementconstructor_p.h>
diff --git a/src/xmlpatterns/utils/qdebug_p.h b/src/xmlpatterns/utils/qxmldebug_p.h
similarity index 100%
rename from src/xmlpatterns/utils/qdebug_p.h
rename to src/xmlpatterns/utils/qxmldebug_p.h
diff --git a/src/xmlpatterns/utils/utils.pri b/src/xmlpatterns/utils/utils.pri
index 2db91c252500d25b5d776ea3f4fc1456948a1909..97da7e8d45138c1437eb4d9555c082d75073bdb2 100644
--- a/src/xmlpatterns/utils/utils.pri
+++ b/src/xmlpatterns/utils/utils.pri
@@ -1,7 +1,7 @@
 HEADERS += $$PWD/qautoptr_p.h                       \
            $$PWD/qcommonnamespaces_p.h              \
            $$PWD/qcppcastinghelper_p.h              \
-           $$PWD/qdebug_p.h                         \
+           $$PWD/qxmldebug_p.h                         \
            $$PWD/qgenericnamespaceresolver_p.h      \
            $$PWD/qpatternistlocale_p.h              \
            $$PWD/qnamepool_p.h                      \
diff --git a/tests/auto/xmlpatternssdk/ExternalSourceLoader.cpp b/tests/auto/xmlpatternssdk/ExternalSourceLoader.cpp
index 895fc86f66ef7d2d3ad2d3affbe647a38ab6afcf..e5adb080186a5e1a91c35fc8d4ed10b1ded7ab7d 100644
--- a/tests/auto/xmlpatternssdk/ExternalSourceLoader.cpp
+++ b/tests/auto/xmlpatternssdk/ExternalSourceLoader.cpp
@@ -40,7 +40,7 @@
 #include "Global.h"
 
 #include <private/qcommonsequencetypes_p.h>
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 #include <private/qatomicstring_p.h>
 
 #include "ExternalSourceLoader.h"
diff --git a/tests/auto/xmlpatternssdk/TestBaseLine.cpp b/tests/auto/xmlpatternssdk/TestBaseLine.cpp
index 4086aa951e63357256257493dc77209be6b10eee..b9e24cdff05f3499f0757fabf7f1fc1ec349b632 100644
--- a/tests/auto/xmlpatternssdk/TestBaseLine.cpp
+++ b/tests/auto/xmlpatternssdk/TestBaseLine.cpp
@@ -40,7 +40,7 @@
 #include <QXmlAttributes>
 #include <QXmlSimpleReader>
 
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 #include "XMLWriter.h"
 
 #include "TestBaseLine.h"
diff --git a/tests/auto/xmlpatternssdk/TestResult.cpp b/tests/auto/xmlpatternssdk/TestResult.cpp
index 43db429fcf430e78cc696f38d5f0ba171069e3eb..7f74009044bee83bb36c0fb8fec207aaebcd4035 100644
--- a/tests/auto/xmlpatternssdk/TestResult.cpp
+++ b/tests/auto/xmlpatternssdk/TestResult.cpp
@@ -34,7 +34,7 @@
 #include <QXmlAttributes>
 #include <QtDebug>
 
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 #include "Global.h"
 #include "XMLWriter.h"
 
diff --git a/tests/auto/xmlpatternssdk/TestSuite.cpp b/tests/auto/xmlpatternssdk/TestSuite.cpp
index 8bf437d1d3a8361aaaf20fca792638c36dca69a8..172f930a9155c7e645ebbec6e2be43c7bd642459 100644
--- a/tests/auto/xmlpatternssdk/TestSuite.cpp
+++ b/tests/auto/xmlpatternssdk/TestSuite.cpp
@@ -43,7 +43,7 @@
 #include "XMLWriter.h"
 #include "XSLTTestSuiteHandler.h"
 #include "XSDTestSuiteHandler.h"
-#include <private/qdebug_p.h>
+#include <private/qxmldebug_p.h>
 
 #include "TestSuite.h"