round the position to integer, prevents an ugly effect of dancing fonts

svn path=/trunk/KDE/kdelibs/; revision=1051556
This commit is contained in:
Marco Martin 2009-11-19 19:40:07 +00:00
parent ad028bab20
commit ea0494d0fb

View File

@ -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());
}
}