s/viewportGeometry/contentsSize/

svn path=/trunk/KDE/kdelibs/; revision=1051071
This commit is contained in:
Marco Martin 2009-11-18 19:55:59 +00:00
parent af17b151d4
commit 62fb0d35ce

View File

@ -250,7 +250,7 @@ void KineticScrolling::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
(d->contentsSize.height() < d->viewportGeometry.height())) { (d->contentsSize.height() < d->viewportGeometry.height())) {
d->kinMovement = QPointF(0, 0); d->kinMovement = QPointF(0, 0);
movement = QPointF(0, 0); movement = QPointF(0, 0);
} else if (d->viewportGeometry.height() < d->viewportGeometry.height()) { } else if (d->contentsSize.height() < d->viewportGeometry.height()) {
d->kinMovement += QPointF(movement.x(), 0); d->kinMovement += QPointF(movement.x(), 0);
movement.setY(0); movement.setY(0);
} else if (d->contentsSize.width() < d->viewportGeometry.width()) { } else if (d->contentsSize.width() < d->viewportGeometry.width()) {