From 2d0f7dc81b42beccfeae944cdc5d0929ec1ec5f6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 5 Nov 2009 18:37:38 +0000 Subject: [PATCH] set the proper margins:.. todo: constant, not magic numbers svn path=/trunk/KDE/kdelibs/; revision=1045303 --- widgets/scrollwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index fc05da744..ea69e2f12 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -151,10 +151,10 @@ public: QSizeF widgetSize = widget->size(); if (widget->sizePolicy().expandingDirections() & Qt::Horizontal) { //keep a 1 pixel border - widgetSize.setWidth(scrollingWidget->size().width()-2); + widgetSize.setWidth(scrollingWidget->size().width()-4); } if (widget->sizePolicy().expandingDirections() & Qt::Vertical) { - widgetSize.setHeight(scrollingWidget->size().height()-2); + widgetSize.setHeight(scrollingWidget->size().height()-4); } widget->resize(widgetSize); }