summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxkeyactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxkeyactions.cpp')
-rw-r--r--src/declarative/fx/qfxkeyactions.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxkeyactions.cpp b/src/declarative/fx/qfxkeyactions.cpp
index c4ae3e3..d16c305 100644
--- a/src/declarative/fx/qfxkeyactions.cpp
+++ b/src/declarative/fx/qfxkeyactions.cpp
@@ -908,8 +908,7 @@ void QFxKeyActions::keyPressEvent(QKeyEvent *event)
{
Qt::Key key = (Qt::Key)event->key();
if(d->enabled && d->key(key)) {
- QmlExpression b(itemContext(), d->action(key),
- this, false);
+ QmlExpression b(qmlContext(this), d->action(key), this, false);
b.value();
event->accept();
} else {