diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-10-30 16:34:30 +0100 |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-10-30 16:34:30 +0100 |
commit | 4010ca17366a094860754129ed4a21339c6931bb (patch) | |
tree | ca2a1f4230a74788e90ca233b478efec92e5f79b | |
parent | f3c89bc0e04c128d8c1f84e45983bdb96d55d7cc (diff) |
Compile fix for platforms where qreal is definded as float.
-rw-r--r-- | src/qlistcontroller.cpp | 4 |
1 files 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<qreal>(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<qreal>(.0, offset, d->view->maximumOffset())); } return true; } |