From ea0494d0fbca35ea25b601bd4eba2a203989a14e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 19 Nov 2009 19:40:07 +0000 Subject: [PATCH] round the position to integer, prevents an ugly effect of dancing fonts svn path=/trunk/KDE/kdelibs/; revision=1051556 --- widgets/scrollwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index e8b744345..37795bb0c 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -404,7 +404,7 @@ QSizeF ScrollWidget::contentsSize() const void ScrollWidget::setScrollPosition(const QPointF &position) { if (d->widget) { - d->widget->setPos(-position); + d->widget->setPos(-position.toPoint()); } }