Remove two more places where we used v8
authorLars Knoll <lars.knoll@digia.com>
Mon, 10 Jun 2013 13:10:02 +0000 (15:10 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 10 Jun 2013 13:45:29 +0000 (15:45 +0200)
commit9969d6f3099bd0fc19668754a5d54c740c5e7fd8
tree996957c94dcce034ed35b94c77ecba5af6d8a370
parentedfc60f0497b7339a4776b10e2862e106c35f28b
Remove two more places where we used v8

Change Value::isInt32() to convert to an integer if possible.
Use this to avoid casting doubles to ints twice. usage of
v8::Value::IsInt32() in two places.

Change-Id: I5b9d8be7d90b461c11440bf54660ceef7e8f0f1b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4value_p.h
src/qml/qml/v4/qv4variantobject.cpp
src/quick/items/qquickdrag.cpp
src/quick/items/qquickdroparea.cpp