don't reset to zero the position on scrollbar move

svn path=/trunk/KDE/kdelibs/; revision=1034699
This commit is contained in:
Marco Martin 2009-10-13 10:10:08 +00:00
parent 608c6b9492
commit e6661712a8

View File

@ -155,14 +155,14 @@ public:
void verticalScroll(int value)
{
if (!dragging) {
widget->setPos(QPoint(0, -value*10));
widget->setPos(QPoint(widget->pos().x(), -value*10));
}
}
void horizontalScroll(int value)
{
if (!dragging) {
widget->setPos(QPoint(-value*10, 0));
widget->setPos(QPoint(-value*10, widget->pos().y()));
}
}