force to invalidate the size hint when the inner widget size changes

svn path=/trunk/KDE/kdelibs/; revision=1036087
This commit is contained in:
Marco Martin 2009-10-16 14:53:11 +00:00
parent 31cb2730ea
commit 4191b96c6d

View File

@ -462,6 +462,8 @@ bool ScrollWidget::eventFilter(QObject *watched, QEvent *event)
if (watched == d->widget && event->type() == QEvent::GraphicsSceneResize) {
d->adjustScrollbars();
d->adjustClipping();
//force to refresh the size hint
layout()->invalidate();
} else if (watched == d->widget && event->type() == QEvent::GraphicsSceneMove) {
d->horizontalScrollBar->blockSignals(true);
d->verticalScrollBar->blockSignals(true);