set the proper margins:.. todo: constant, not magic numbers

svn path=/trunk/KDE/kdelibs/; revision=1045303
This commit is contained in:
Marco Martin 2009-11-05 18:37:38 +00:00
parent 8f3e0d5494
commit 2d0f7dc81b

View File

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