From 4010ca17366a094860754129ed4a21339c6931bb Mon Sep 17 00:00:00 2001 From: Marius Bugge Monsen Date: Fri, 30 Oct 2009 16:34:30 +0100 Subject: Compile fix for platforms where qreal is definded as float. --- src/qlistcontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qlistcontroller.cpp b/src/qlistcontroller.cpp index 27bcd7c..126ed72 100644 --- a/src/qlistcontroller.cpp +++ b/src/qlistcontroller.cpp @@ -745,10 +745,10 @@ bool QtListController::wheelEvent(QGraphicsSceneWheelEvent *event, const QTransf return false; if (d->scrollPerItem) { const int index = d->view->firstIndex() - event->delta() / 120; - d->view->setFirstIndex(qBound(0, index, d->view->maximumFirstIndex())); + d->view->setFirstIndex(qBound(0, index, d->view->maximumFirstIndex())); } else { const qreal offset = d->view->offset() - event->delta() / 120; - d->view->setOffset(qBound(.0, offset, d->view->maximumOffset())); + d->view->setOffset(qBound(.0, offset, d->view->maximumOffset())); } return true; } -- cgit v1.2.3