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:
parent
c702490625
commit
af839dc89c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user