keep a 1 pixel border

svn path=/trunk/KDE/kdelibs/; revision=1038647
This commit is contained in:
Marco Martin 2009-10-21 14:48:14 +00:00
parent 9f806ddf48
commit 7423a261dd

View File

@ -150,10 +150,11 @@ public:
QSizeF widgetSize = widget->size();
if (widget->sizePolicy().expandingDirections() & Qt::Horizontal) {
widgetSize.setWidth(scrollingWidget->size().width());
//keep a 1 pixel border
widgetSize.setWidth(scrollingWidget->size().width()-2);
}
if (widget->sizePolicy().expandingDirections() & Qt::Vertical) {
widgetSize.setHeight(scrollingWidget->size().height());
widgetSize.setHeight(scrollingWidget->size().height()-2);
}
widget->resize(widgetSize);
}