Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qscrollarea.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    122122    If a scroll area is used to display the contents of a widget that
    123123    contains child widgets arranged in a layout, it is important to
    124     realise that the size policy of the layout will also determine the
     124    realize that the size policy of the layout will also determine the
    125125    size of the widget. This is especially useful to know if you intend
    126126    to dynamically change the contents of the layout. In such cases,
     
    483483    else if (focusRect.right() > visibleRect.right())
    484484        d->hbar->setValue(focusRect.right() - d->viewport->width());
    485     else
     485    else if (focusRect.left() < visibleRect.left())
    486486        d->hbar->setValue(focusRect.left());
    487487
     
    490490    else if (focusRect.bottom() > visibleRect.bottom())
    491491        d->vbar->setValue(focusRect.bottom() - d->viewport->height());
    492     else
     492    else if (focusRect.top() < visibleRect.top())
    493493        d->vbar->setValue(focusRect.top());
    494494}
Note: See TracChangeset for help on using the changeset viewer.