diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-18 16:23:01 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-18 16:23:01 (GMT) |
commit | dce762752b64be82c9592b4bed69101f4e7c9be2 (patch) | |
tree | 78c26b6942afd5928bc33a238dac76afe2bc9982 /src/gui/widgets | |
parent | 0cea0e45523283d6c31998672f97b0343c1388f2 (diff) | |
parent | d484656fcf0ba5422489628c9e2e89aade81e869 (diff) | |
download | Qt-dce762752b64be82c9592b4bed69101f4e7c9be2.zip Qt-dce762752b64be82c9592b4bed69101f4e7c9be2.tar.gz Qt-dce762752b64be82c9592b4bed69101f4e7c9be2.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Some QWindowSurface implementations might implement flush as a buffer
Set EGL_SWAP_BEHAVIOR to EGL_BUFFER_PRESERVED for regular QWidgets
Cleanup & remove unused function overloads from QEgl* APIs
QScrollArea: Excessive scrolling in focusNextPrevChild()
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qscrollarea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qscrollarea.cpp b/src/gui/widgets/qscrollarea.cpp index 6b81d9f..38e799e 100644 --- a/src/gui/widgets/qscrollarea.cpp +++ b/src/gui/widgets/qscrollarea.cpp @@ -482,14 +482,14 @@ void QScrollArea::ensureWidgetVisible(QWidget *childWidget, int xmargin, int yma d->hbar->setValue(focusRect.center().x() - d->viewport->width() / 2); else if (focusRect.right() > visibleRect.right()) d->hbar->setValue(focusRect.right() - d->viewport->width()); - else + else if (focusRect.left() < visibleRect.left()) d->hbar->setValue(focusRect.left()); if (focusRect.height() > visibleRect.height()) d->vbar->setValue(focusRect.center().y() - d->viewport->height() / 2); else if (focusRect.bottom() > visibleRect.bottom()) d->vbar->setValue(focusRect.bottom() - d->viewport->height()); - else + else if (focusRect.top() < visibleRect.top()) d->vbar->setValue(focusRect.top()); } |