From bc38bec0c7861e8d45604606c5a36ca14b8051c0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 21 Jun 2010 14:56:37 +0000 Subject: [PATCH] ensure the main widget is visible after its resize CCBUG:226429 svn path=/trunk/KDE/kdelibs/; revision=1140801 --- widgets/scrollwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 85a654b4d..b6ebe1263 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -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);