keep a 1 pixel border
svn path=/trunk/KDE/kdelibs/; revision=1038647
This commit is contained in:
parent
9f806ddf48
commit
7423a261dd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user