diff --git a/src/plugins/debugger/debuggerstringutils.h b/src/plugins/debugger/debuggerstringutils.h
index 6c09662ab3b91e2a1f27c6929709d8a34c06f910..e5508e28ff2f9c63994c6f7094fb9e609479eec5 100644
--- a/src/plugins/debugger/debuggerstringutils.h
+++ b/src/plugins/debugger/debuggerstringutils.h
@@ -33,6 +33,8 @@
 #ifndef DEBUGGERSTRINGUTILS_H
 #define DEBUGGERSTRINGUTILS_H
 
+#ifndef qdoc
+
 #include <QtCore/QString>
 
 namespace Debugger {
@@ -48,4 +50,7 @@ inline QString _(const QByteArray &ba) { return QString::fromLatin1(ba, ba.size(
 
 } // namespace Internal
 } // namespace Debugger
+
+#endif // qdoc
+
 #endif // DEBUGGERSTRINGUTILS_H