diff options
Diffstat (limited to 'src/quick/items/qquickdroparea.cpp')
-rw-r--r-- | src/quick/items/qquickdroparea.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/quick/items/qquickdroparea.cpp b/src/quick/items/qquickdroparea.cpp index f5dbb7de76..659e606ef9 100644 --- a/src/quick/items/qquickdroparea.cpp +++ b/src/quick/items/qquickdroparea.cpp @@ -416,14 +416,14 @@ QStringList QQuickDropEvent::keys() const If an \a action is specified it will overwrite the value of the \l action property. */ -void QQuickDropEvent::accept(QQmlV8Function *args) +void QQuickDropEvent::accept(QQmlV4Function *args) { Qt::DropAction action = event->dropAction(); - if (args->Length() >= 1) { - v8::Local<v8::Value> v = (*args)[0]; - if (v->IsInt32()) - action = Qt::DropAction(v->Int32Value()); + if (args->length() >= 1) { + QV4::Value v = (*args)[0]; + if (v.isInt32()) + action = Qt::DropAction(v.integerValue()); } // get action from arguments. event->setDropAction(action); |