summaryrefslogtreecommitdiffstats
path: root/tools/qml/qmlruntime.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-04-23 15:22:16 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-05-05 13:29:07 (GMT)
commitd340dc6e4b3f1f4f8737d0d1d34e76ae68e007d6 (patch)
tree26572c3d6e80022da7be812875fdc1a1f0ff3695 /tools/qml/qmlruntime.h
parent39e992988f21553df7e839f36ced75ca5bf8588c (diff)
downloadQt-d340dc6e4b3f1f4f8737d0d1d34e76ae68e007d6.zip
Qt-d340dc6e4b3f1f4f8737d0d1d34e76ae68e007d6.tar.gz
Qt-d340dc6e4b3f1f4f8737d0d1d34e76ae68e007d6.tar.bz2
Add a switch to the menu to hide/show the runtime warnings
Reviewed-by: mae
Diffstat (limited to 'tools/qml/qmlruntime.h')
-rw-r--r--tools/qml/qmlruntime.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.h b/tools/qml/qmlruntime.h
index 0b23303..655feea 100644
--- a/tools/qml/qmlruntime.h
+++ b/tools/qml/qmlruntime.h
@@ -48,6 +48,8 @@
#include <QTime>
#include <QList>
+#include "loggerwidget.h"
+
QT_BEGIN_NAMESPACE
class QDeclarativeView;
@@ -108,6 +110,7 @@ public:
QMenuBar *menuBar() const;
QDeclarativeView *view() const;
+ LoggerWidget *warningsWidget() const;
public slots:
void sceneResized(QSize size);
@@ -145,10 +148,15 @@ private slots:
void startNetwork();
void toggleFullScreen();
+ void showWarnings(bool show);
+ void warningsWidgetOpened();
+ void warningsWidgetClosed();
+
private:
QString getVideoFileName();
int menuBarHeight() const;
+ LoggerWidget *loggerWindow;
PreviewDeviceSkin *skin;
QSize skinscreensize;
QDeclarativeView *canvas;
@@ -183,6 +191,8 @@ private:
QAction *portraitOrientation;
QAction *landscapeOrientation;
+ QAction *showWarningsWindow;
+
QString m_script;
ScriptOptions m_scriptOptions;
QDeclarativeTester *tester;