diff --git a/src/plugins/qmlprofiler/qmlprofilerengine.cpp b/src/plugins/qmlprofiler/qmlprofilerengine.cpp
index 657ac872b76fd5499d64da827b412a63b656bb3a..e7e01589180c03b8d1119bc22fce90566a44bb41 100644
--- a/src/plugins/qmlprofiler/qmlprofilerengine.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerengine.cpp
@@ -27,7 +27,7 @@
 #include <unistd.h> // sleep
 #endif
 
-using namespace Analyzer::Internal;
+using namespace QmlProfiler::Internal;
 
 class QmlProfilerEngine::QmlProfilerEnginePrivate
 {
@@ -88,7 +88,7 @@ void QmlProfilerEngine::stop()
 
 void QmlProfilerEngine::spontaneousStop()
 {
-    AnalyzerManager::instance()->stopTool();
+    Analyzer::AnalyzerManager::instance()->stopTool();
 }
 
 void QmlProfilerEngine::viewUpdated()
diff --git a/src/plugins/qmlprofiler/qmlprofilerengine.h b/src/plugins/qmlprofiler/qmlprofilerengine.h
index cc3449cb050d276071205e2a19802586f53be1ae..7b51939eda04f5671e1cb6b7262da956f3f82a93 100644
--- a/src/plugins/qmlprofiler/qmlprofilerengine.h
+++ b/src/plugins/qmlprofiler/qmlprofilerengine.h
@@ -1,13 +1,12 @@
 #ifndef QMLPROFILERENGINE_H
 #define QMLPROFILERENGINE_H
 
-#include "ianalyzerengine.h"
+#include <analyzerbase/ianalyzerengine.h>
 
-namespace Analyzer {
+namespace QmlProfiler {
 namespace Internal {
 
-
-class QmlProfilerEngine : public IAnalyzerEngine
+class QmlProfilerEngine : public Analyzer::IAnalyzerEngine
 {
     Q_OBJECT
 public:
@@ -31,7 +30,7 @@ private:
     QmlProfilerEnginePrivate *d;
 };
 
-}
-}
+} // namespace Internal
+} // namespace QmlProfiler
 
 #endif // QMLPROFILERENGINE_H
diff --git a/src/plugins/qmlprofiler/qmlprofilerplugin.cpp b/src/plugins/qmlprofiler/qmlprofilerplugin.cpp
index 0e6b871c5971aadfd15bb0af146f06b2ae68b1e4..e94f1933aa50235393437a5d299a445ed6b73cf7 100644
--- a/src/plugins/qmlprofiler/qmlprofilerplugin.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerplugin.cpp
@@ -20,7 +20,7 @@
 #include "qmlprofilertool.h"
 
 using namespace Analyzer;
-using namespace Analyzer::Internal;
+using namespace QmlProfiler::Internal;
 
 QmlProfilerPlugin *QmlProfilerPlugin::m_instance = 0;
 bool QmlProfilerPlugin::debugOutput = false;
diff --git a/src/plugins/qmlprofiler/qmlprofilerplugin.h b/src/plugins/qmlprofiler/qmlprofilerplugin.h
index 5707c87b18ed06660d8d1efd9e79dac673dc4165..223010b178df8de67919af59b81865fd8096876a 100644
--- a/src/plugins/qmlprofiler/qmlprofilerplugin.h
+++ b/src/plugins/qmlprofiler/qmlprofilerplugin.h
@@ -5,7 +5,7 @@
 
 #include <extensionsystem/iplugin.h>
 
-namespace Analyzer {
+namespace QmlProfiler {
 namespace Internal {
 
 class QmlProfilerPlugin : public ExtensionSystem::IPlugin
@@ -32,7 +32,7 @@ private:
 };
 
 } // namespace Internal
-} // namespace Analyzer
+} // namespace QmlProfiler
 
 #endif // QMLPROFILERPLUGIN_H
 
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index 9e3d2553bb9d5751a07cbc467e04414f1d307dfe..a403ec069167db3b7633cf579211a6fbe6ee02fc 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -28,9 +28,8 @@
 #include <QtGui/QHBoxLayout>
 #include <QtGui/QLabel>
 
-
 using namespace Analyzer;
-using namespace Analyzer::Internal;
+using namespace QmlProfiler::Internal;
 
 QString QmlProfilerTool::host = QLatin1String("localhost");
 quint16 QmlProfilerTool::port = 33456;
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.h b/src/plugins/qmlprofiler/qmlprofilertool.h
index 19c3a7ce3374d06577372f1466b989a515f87281..9384733719e7254ccabc9bdd6605de3c452c0276 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.h
+++ b/src/plugins/qmlprofiler/qmlprofilertool.h
@@ -1,13 +1,13 @@
 #ifndef QMLPROFILERTOOL_H
 #define QMLPROFILERTOOL_H
 
-#include "ianalyzertool.h"
-#include "ianalyzerengine.h"
+#include <analyzerbase/ianalyzertool.h>
+#include <analyzerbase/ianalyzerengine.h>
 
-namespace Analyzer {
+namespace QmlProfiler {
 namespace Internal {
 
-class QmlProfilerTool : public IAnalyzerTool
+class QmlProfilerTool : public Analyzer::IAnalyzerTool
 {
     Q_OBJECT
 public:
@@ -20,9 +20,9 @@ public:
 
     void initialize(ExtensionSystem::IPlugin *plugin);
 
-    IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration);
+    Analyzer::IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration);
 
-    IAnalyzerOutputPaneAdapter *outputPaneAdapter();
+    Analyzer::IAnalyzerOutputPaneAdapter *outputPaneAdapter();
     QWidget *createToolBarWidget();
     QWidget *createTimeLineWidget();
 
@@ -48,7 +48,7 @@ private:
     QmlProfilerToolPrivate *d;
 };
 
-}
-}
+} // namespace Internal
+} // namespace QmlProfiler
 
 #endif // QMLPROFILERTOOL_H
diff --git a/src/plugins/qmlprofiler/timelineview.cpp b/src/plugins/qmlprofiler/timelineview.cpp
index 3c951237e273995f962fc41b29aac2d244fe8a26..bde435f58a41f30f9d578e6a3458032238ae8584 100644
--- a/src/plugins/qmlprofiler/timelineview.cpp
+++ b/src/plugins/qmlprofiler/timelineview.cpp
@@ -3,6 +3,8 @@
 #include <qdeclarativecontext.h>
 #include <qdeclarativeproperty.h>
 
+using namespace QmlProfiler::Internal;
+
 TimelineView::TimelineView(QDeclarativeItem *parent) :
     QDeclarativeItem(parent), m_delegate(0), m_startTime(0), m_endTime(0), m_startX(0),
     prevMin(0), prevMax(0), m_totalWidth(0)
diff --git a/src/plugins/qmlprofiler/timelineview.h b/src/plugins/qmlprofiler/timelineview.h
index 0235d34aec6649e5146fc0851d0fc8943b4f1f0e..ab3aad1a5362805c5990369cefd3d85788908712 100644
--- a/src/plugins/qmlprofiler/timelineview.h
+++ b/src/plugins/qmlprofiler/timelineview.h
@@ -1,8 +1,11 @@
 #ifndef TIMELINEVIEW_H
 #define TIMELINEVIEW_H
 
-#include <QDeclarativeItem>
-#include <QScriptValue>
+#include <QtDeclarative/QDeclarativeItem>
+#include <QtScript/QScriptValue>
+
+namespace QmlProfiler {
+namespace Internal {
 
 class TimelineView : public QDeclarativeItem
 {
@@ -104,6 +107,9 @@ private:
     qreal m_totalWidth;
 };
 
-QML_DECLARE_TYPE(TimelineView)
+} // namespace Internal
+} // namespace QmlProfiler
+
+QML_DECLARE_TYPE(QmlProfiler::Internal::TimelineView)
 
 #endif // TIMELINEVIEW_H
diff --git a/src/plugins/qmlprofiler/tracewindow.cpp b/src/plugins/qmlprofiler/tracewindow.cpp
index aa245fd1f32022a429034b4732a82b72b59c0dd1..0423e73ddf7c78783ffaf81640fa2381d5842b63 100644
--- a/src/plugins/qmlprofiler/tracewindow.cpp
+++ b/src/plugins/qmlprofiler/tracewindow.cpp
@@ -52,6 +52,9 @@
 
 #define GAP_TIME 150
 
+namespace QmlProfiler {
+namespace Internal {
+
 struct Location
 {
     Location() : line(-1) {}
@@ -131,6 +134,11 @@ private:
     bool m_recording;
 };
 
+} // namespace Internal
+} // namespace QmlProfiler
+
+using namespace QmlProfiler::Internal;
+
 TracePlugin::TracePlugin(QDeclarativeDebugConnection *client)
     : QDeclarativeDebugClient(QLatin1String("CanvasFrameRate"), client), m_inProgressRanges(0), m_maximumTime(0), m_recording(false)
 {
@@ -252,7 +260,7 @@ TraceWindow::TraceWindow(QWidget *parent)
 
     m_view = new QDeclarativeView(this);
 
-    if (Analyzer::Internal::QmlProfilerPlugin::debugOutput) {
+    if (QmlProfilerPlugin::debugOutput) {
         //new QmlJSDebugger::JSDebuggerAgent(m_view->engine());
         //new QmlJSDebugger::QDeclarativeViewObserver(m_view, m_view);
     }
diff --git a/src/plugins/qmlprofiler/tracewindow.h b/src/plugins/qmlprofiler/tracewindow.h
index 03d3cc3754789007047e30ede0a5d73bc1340e56..ff1dd477cc7dcea260b93e7f2e4e10b5334266d2 100644
--- a/src/plugins/qmlprofiler/tracewindow.h
+++ b/src/plugins/qmlprofiler/tracewindow.h
@@ -29,11 +29,12 @@
 #ifndef CANVASFRAMERATE_H
 #define CANVASFRAMERATE_H
 
-#include <private/qdeclarativedebugclient_p.h>
-
 #include <QtCore/qpointer.h>
 #include <QtGui/qwidget.h>
 
+#include <QtDeclarative/private/qdeclarativedebugclient_p.h>
+
+
 QT_BEGIN_NAMESPACE
 class QTabWidget;
 class QSlider;
@@ -44,6 +45,9 @@ class QPushButton;
 class QDeclarativeView;
 QT_END_NAMESPACE
 
+namespace QmlProfiler {
+namespace Internal {
+
 class TracePlugin;
 
 class TraceWindow : public QWidget
@@ -75,5 +79,8 @@ private:
     QDeclarativeView *m_view;
 };
 
+} // namespace Internal
+} // namespace QmlProfiler
+
 #endif // CANVASFRAMERATE_H