when the scrolbar visibility is udated activate the layout and do

resize, this should avoid the unnecessary horizontal scrollbar in the
microblog applet

svn path=/trunk/KDE/kdelibs/; revision=1002239
This commit is contained in:
Marco Martin 2009-07-25 13:14:19 +00:00
parent c702490625
commit af839dc89c

View File

@ -81,6 +81,9 @@ public:
layout->addItem(horizontalScrollBar, 1, 0);
horizontalScrollBar->show();
}
layout->activate();
widget->resize(scrollingWidget->size().width(), widget->size().height());
}
void verticalScroll(int value)
@ -221,8 +224,6 @@ void ScrollWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
d->adjustClipping();
d->widget->resize(d->scrollingWidget->size());
QGraphicsWidget::resizeEvent(event);
}