summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorIndiana Kernick <kerndog73@gmail.com>2019-12-14 05:31:48 +0000
committerKerndog73 <kerndog73@gmail.com>2020-01-25 17:40:34 +1030
commitba1e880fbb2aacb550980bc2de35246bdcc38481 (patch)
tree84d2e6caa52ee7cc4c60f21062a3eacd8b888b5b /mkspecs
parentbb42b7d8b2fe8508074bc4574679893c6cf4fbd5 (diff)
QScrollArea: fix off-by-one error in ensureWidgetVisible
If focusRect was 5 pixels past the right side of the viewport, then the scroll area would need to be scrolled by 5 pixels. The error arises because of this: focusRect.right() - d->viewport->width() == 4 focusRect.right() is still inside the rectangle but width is not. So one has to be added. Likewise for focusRect.bottom() and height. Change-Id: Ice47a7758d136b2e4bdcbe25a33a015b37f500c1 Fixes: QTBUG-80093 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions