ensure the main widget is visible after its resize
CCBUG:226429 svn path=/trunk/KDE/kdelibs/; revision=1140801
This commit is contained in:
parent
c6a70060ed
commit
bc38bec0c7
@ -1368,6 +1368,7 @@ bool ScrollWidget::eventFilter(QObject *watched, QEvent *event)
|
|||||||
d->stopAnimations();
|
d->stopAnimations();
|
||||||
d->adjustScrollbarsTimer->start(200);
|
d->adjustScrollbarsTimer->start(200);
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
ensureItemVisible(d->widget.data());
|
||||||
} else if (watched == d->widget.data() && event->type() == QEvent::GraphicsSceneMove) {
|
} else if (watched == d->widget.data() && event->type() == QEvent::GraphicsSceneMove) {
|
||||||
d->horizontalScrollBar->blockSignals(true);
|
d->horizontalScrollBar->blockSignals(true);
|
||||||
d->verticalScrollBar->blockSignals(true);
|
d->verticalScrollBar->blockSignals(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user