aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-09 15:06:36 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-10-09 16:38:00 +0200
commit8c3d661163fc7517569f1a70ab70c2b23de25406 (patch)
tree14d9039a515ed73a589d2b9fa5959398408d2a30 /src/qml/jit
parente157af88554a694ffa550ead5187649a29b5dda8 (diff)
Return the content position rounded on the right side
QQuickFlickable::contentX/Y() returns the negative of the value stored in the QQuickTimeLineValue used by QQuickFlickable. So we must be careful when using things like qRound, and call it with the negative of the value ine the QQuickTimeLineValue, else code like this would fail: QQuickFlickable *f = ... f->setPixelAligned(true) f->setContentY(-10.5) assert(f->contentY() == qRound(-10.5)) // fail The assert expression indeed turns into -11 == -10, which is false but which is not what the user would expect. Change-Id: Ib92ee2fa613b751462237349d9e4e2f2b4652f82 Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
Diffstat (limited to 'src/qml/jit')
0 files changed, 0 insertions, 0 deletions