From 8ff81fd75d93f7b1f5bcc68d6a08b5c72a269c35 Mon Sep 17 00:00:00 2001
From: Aaron Kennedy <aaron.kennedy@nokia.com>
Date: Wed, 29 Sep 2010 16:42:00 +1000
Subject: [PATCH] Revert "Compile"

This reverts commit a9820d4fca3e32c3a92b1eb0fa3e815848d99990.
---
 share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h | 2 +-
 share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp       | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
index 330107bb38f..39b559cabe3 100644
--- a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
+++ b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
@@ -103,7 +103,7 @@ public:
                        const QVariant &argument = QVariant());
 
     void messageReceived(const QByteArray &);
-    void statusChanged(Status);
+    void enabledChanged(bool);
 
 public slots:
 //    void pauses();
diff --git a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
index 6338afd94ef..24c61eead00 100644
--- a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
+++ b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
@@ -511,10 +511,10 @@ void JSDebuggerAgent::continueExec()
     loop.quit();
 }
 
-void JSDebuggerAgent::statusChanged(Status status)
+void JSDebuggerAgent::enabledChanged(bool on)
 {
-    engine()->setAgent(status == Enabled ? this : 0);
-    QDeclarativeDebugService::statusChanged(status);
+    engine()->setAgent(on ? this : 0);
+    QDeclarativeDebugService::enabledChanged(on);
 }
 
 } // namespace QmlJSDebugger
-- 
GitLab