force to invalidate the size hint when the inner widget size changes
svn path=/trunk/KDE/kdelibs/; revision=1036087
This commit is contained in:
parent
31cb2730ea
commit
4191b96c6d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user