summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h
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 /tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h
parented0616b199dde58c8c87097dce31128dd0bfb5b8 (diff)
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 'tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h')
-rw-r--r--tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h b/tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h
new file mode 100644
index 00000000..4eeba4ca
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativedebugobservermode/app/mainwindow.h
@@ -0,0 +1,19 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QDeclarativeView>
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+ bool loadQML(const QUrl &source);
+
+private:
+ QDeclarativeView *m_view;
+};
+
+#endif // MAINWINDOW_H