diff --git a/src/plugins/qmljsinspector/qmlinspectortoolbar.cpp b/src/plugins/qmljsinspector/qmlinspectortoolbar.cpp
index 94f32c6a2437778feaa7bf1b18b9b667ecc71cc6..cd1b3c360f6d794b12e2ef564314e5edfb54a03c 100644
--- a/src/plugins/qmljsinspector/qmlinspectortoolbar.cpp
+++ b/src/plugins/qmljsinspector/qmlinspectortoolbar.cpp
@@ -167,6 +167,8 @@ void QmlInspectorToolbar::createActions(const Core::Context &context)
     uiSwitcher->setToolbar(QmlJSInspector::Constants::LANG_QML, configBar);
     setEnabled(false);
 
+    connect(m_reloadAction, SIGNAL(triggered()), SIGNAL(reloadSelected()));
+
     connect(m_colorPickerAction, SIGNAL(triggered()), SLOT(activateColorPickerOnClick()));
 
     connect(m_playAction, SIGNAL(triggered()), SLOT(activatePlayOnClick()));
diff --git a/src/plugins/qmljsinspector/qmlinspectortoolbar.h b/src/plugins/qmljsinspector/qmlinspectortoolbar.h
index 09427b5e0398ef69488fd707c960fe421fdbc3d1..da19946cceedb2521f1908a48ee9428396fc3bbf 100644
--- a/src/plugins/qmljsinspector/qmlinspectortoolbar.h
+++ b/src/plugins/qmljsinspector/qmlinspectortoolbar.h
@@ -43,6 +43,7 @@ public slots:
 signals:
     void animationSpeedChanged(qreal slowdownFactor = 1.0f);
 
+    void reloadSelected();
     void colorPickerSelected();
     void selectToolSelected();
     void marqueeSelectToolSelected();
diff --git a/src/plugins/qmljsinspector/qmljsinspector.cpp b/src/plugins/qmljsinspector/qmljsinspector.cpp
index 90367afb3767c10d7b94c6f352c066a7aec90a76..643cead627667772f3f42ca4aed5904c78ecd656 100644
--- a/src/plugins/qmljsinspector/qmljsinspector.cpp
+++ b/src/plugins/qmljsinspector/qmljsinspector.cpp
@@ -85,9 +85,6 @@
 #include <QtCore/QtPlugin>
 #include <QtCore/QDateTime>
 
-#include <QtGui/QToolButton>
-#include <QtGui/QToolBar>
-#include <QtGui/QBoxLayout>
 #include <QtGui/QLabel>
 #include <QtGui/QDockWidget>
 #include <QtGui/QAction>
@@ -128,6 +125,10 @@ Inspector::Inspector(QObject *parent)
 
     m_textPreview = new QmlJSLiveTextPreview(this);
 
+    connect(m_textPreview,
+            SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
+            SLOT(changeSelectedItems(QList<QDeclarativeDebugObjectReference>)));
+
     connect(m_clientProxy, SIGNAL(selectedItemsChanged(QList<QDeclarativeDebugObjectReference>)),
             SLOT(setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectReference>)));
 
diff --git a/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp b/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp
index 3513f7df512d71fd5f7122bb662fa6f5fc4a2d03..36f82eeb6a0ef9b65c27cfd35c45d89edd3b68eb 100644
--- a/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp
+++ b/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp
@@ -165,6 +165,7 @@ void InspectorPlugin::extensionsInitialized()
     connect(_clientProxy, SIGNAL(connected(QDeclarativeEngineDebug*)), m_toolbar, SLOT(enable()));
     connect(_clientProxy, SIGNAL(disconnected()), m_toolbar, SLOT(disable()));
 
+    connect(m_toolbar, SIGNAL(reloadSelected()), _clientProxy, SLOT(reloadQmlViewer()));
     connect(m_toolbar, SIGNAL(animationSpeedChanged(qreal)), _clientProxy, SLOT(setAnimationSpeed(qreal)));
     connect(m_toolbar, SIGNAL(colorPickerSelected()), _clientProxy, SLOT(changeToColorPickerTool()));
     connect(m_toolbar, SIGNAL(zoomToolSelected()), _clientProxy, SLOT(changeToZoomTool()));