diff --git a/src/plugins/debugger/sourceagent.cpp b/src/plugins/debugger/sourceagent.cpp
index a0c944fbf1c1259fc4a733d9bee2db0e3b7b9461..fea3e3ad983d5c40fa8c94a7c90a52cdd89d9374 100644
--- a/src/plugins/debugger/sourceagent.cpp
+++ b/src/plugins/debugger/sourceagent.cpp
@@ -107,7 +107,7 @@ SourceAgentPrivate::~SourceAgentPrivate()
 }
 
 SourceAgent::SourceAgent(DebuggerEngine *engine)
-    : QObject(0), d(new SourceAgentPrivate)
+    : d(new SourceAgentPrivate)
 {
     d->engine = engine;
 }
diff --git a/src/plugins/debugger/sourceagent.h b/src/plugins/debugger/sourceagent.h
index 020eda2ececba7cfda068a85373723556bc1b50b..b98f3250eb7bd360913b8299ab49f954ede608c3 100644
--- a/src/plugins/debugger/sourceagent.h
+++ b/src/plugins/debugger/sourceagent.h
@@ -33,7 +33,7 @@
 #ifndef DEBUGGER_SOURCE_AGENT_H
 #define DEBUGGER_SOURCE_AGENT_H
 
-#include <QObject>
+#include <QString>
 
 namespace Debugger {
 
@@ -42,7 +42,7 @@ class DebuggerEngine;
 namespace Internal {
 
 class SourceAgentPrivate;
-class SourceAgent : public QObject
+class SourceAgent
 {
 public:
     explicit SourceAgent(Debugger::DebuggerEngine *engine);