diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-13 07:01:54 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-04-14 05:09:40 (GMT) |
commit | ffd45093795e9481505af0ae9bf5df7b6c704c72 (patch) | |
tree | 8a92da61c63c9f31ff7e7b55319be49cf8478f3a /tools/qml/qmlruntime.h | |
parent | 117e65f1f13ff3c453ab7ed8a88d042cc7eeebee (diff) | |
download | Qt-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.h | 1 |
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); |