summaryrefslogtreecommitdiffstats
path: root/tools/qml/qmlruntime.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-13 07:01:54 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-14 05:09:40 (GMT)
commitffd45093795e9481505af0ae9bf5df7b6c704c72 (patch)
tree8a92da61c63c9f31ff7e7b55319be49cf8478f3a /tools/qml/qmlruntime.h
parent117e65f1f13ff3c453ab7ed8a88d042cc7eeebee (diff)
downloadQt-ffd45093795e9481505af0ae9bf5df7b6c704c72.zip
Qt-ffd45093795e9481505af0ae9bf5df7b6c704c72.tar.gz
Qt-ffd45093795e9481505af0ae9bf5df7b6c704c72.tar.bz2
Add 'runtime' property to the rootContext of DeclarativeViewer
The 'runtime' property is a singleton object that contains various info about the execution environment for the qml application. Currently it contains just one property 'isActiveWindow', which tells if the window of the declarative viewer is active or not. Task-number: QTBUG-8902 Reviewed-by: Martin Jones
Diffstat (limited to 'tools/qml/qmlruntime.h')
-rw-r--r--tools/qml/qmlruntime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.h b/tools/qml/qmlruntime.h
index b934a70..1ae771a 100644
--- a/tools/qml/qmlruntime.h
+++ b/tools/qml/qmlruntime.h
@@ -126,6 +126,7 @@ public slots:
protected:
virtual void keyPressEvent(QKeyEvent *);
+ virtual bool event(QEvent *);
void createMenu(QMenuBar *menu, QMenu *flatmenu);