ensure the main widget is visible after its resize

CCBUG:226429

svn path=/trunk/KDE/kdelibs/; revision=1140801
This commit is contained in:
Marco Martin 2010-06-21 14:56:37 +00:00
parent c6a70060ed
commit bc38bec0c7

View File

@ -1368,6 +1368,7 @@ bool ScrollWidget::eventFilter(QObject *watched, QEvent *event)
d->stopAnimations();
d->adjustScrollbarsTimer->start(200);
updateGeometry();
ensureItemVisible(d->widget.data());
} else if (watched == d->widget.data() && event->type() == QEvent::GraphicsSceneMove) {
d->horizontalScrollBar->blockSignals(true);
d->verticalScrollBar->blockSignals(true);