summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@digia.com>2012-11-22 17:29:53 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-27 17:03:35 +0100
commit70579cf5f1b82460443b764aef1f2d2b23732acd (patch)
treef1ebdf69b9346dae6b3daef348d85cf5215fe052 /src
parented0616b199dde58c8c87097dce31128dd0bfb5b8 (diff)
downloadqtquick1-70579cf5f1b82460443b764aef1f2d2b23732acd.tar.gz
QtQuick1: Fix ObserverMode
Although ObserverMode was enabled, the messages to the plugin were not delivered and hence the feature did not work. Change-Id: I58ec83a4ee727b32833c011a4942cde0cd6a02c8 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp2
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp b/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp
index 9d0cee64..1920e802 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp
+++ b/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.cpp
@@ -63,6 +63,8 @@ AbstractViewInspector::AbstractViewInspector(QObject *parent) :
m_slowDownFactor(1.0),
m_debugService(QDeclarativeInspectorService::instance())
{
+ connect(m_debugService, SIGNAL(gotMessage(QByteArray)),
+ this, SLOT(handleMessage(QByteArray)));
}
void AbstractViewInspector::createQmlObject(const QString &qml, QObject *parent,
diff --git a/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.h b/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.h
index 642ffb50..171740ca 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.h
+++ b/src/plugins/qmltooling/qmldbg_inspector/abstractviewinspector.h
@@ -72,8 +72,6 @@ class AbstractViewInspector : public QObject
public:
explicit AbstractViewInspector(QObject *parent = 0);
- void handleMessage(const QByteArray &message);
-
void createQmlObject(const QString &qml, QObject *parent,
const QStringList &importList,
const QString &filename = QString());
@@ -102,6 +100,9 @@ public:
virtual void setWindowFlags(Qt::WindowFlags flags) = 0;
virtual QDeclarativeEngine *declarativeEngine() const = 0;
+public slots:
+ void handleMessage(const QByteArray &message);
+
signals:
void designModeBehaviorChanged(bool inDesignMode);
void showAppOnTopChanged(bool showAppOnTop);