diff -r cc75c76972ee -r c0432d11811c src/gui/widgets/qabstractscrollarea.cpp --- a/src/gui/widgets/qabstractscrollarea.cpp Wed Apr 21 12:15:23 2010 +0300 +++ b/src/gui/widgets/qabstractscrollarea.cpp Wed Apr 21 20:15:53 2010 +0300 @@ -394,7 +394,7 @@ if ((frameStyle != QFrame::NoFrame) && q->style()->styleHint(QStyle::SH_ScrollView_FrameOnlyAroundContents, &opt, q)) { controlsRect = widgetRect; - const int extra = q->style()->pixelMetric(QStyle::PM_ScrollView_ScrollBarSpacing); + const int extra = q->style()->pixelMetric(QStyle::PM_ScrollView_ScrollBarSpacing, &opt, q); const QPoint cornerExtra(needv ? extra : 0, needh ? extra : 0); QRect frameRect = widgetRect; frameRect.adjust(0, 0, -cornerOffset.x() - cornerExtra.x(), -cornerOffset.y() - cornerExtra.y());