Changeset 846 for trunk/src/gui/widgets/qscrollarea.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/widgets/qscrollarea.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 122 122 If a scroll area is used to display the contents of a widget that 123 123 contains child widgets arranged in a layout, it is important to 124 reali se that the size policy of the layout will also determine the124 realize that the size policy of the layout will also determine the 125 125 size of the widget. This is especially useful to know if you intend 126 126 to dynamically change the contents of the layout. In such cases, … … 483 483 else if (focusRect.right() > visibleRect.right()) 484 484 d->hbar->setValue(focusRect.right() - d->viewport->width()); 485 else 485 else if (focusRect.left() < visibleRect.left()) 486 486 d->hbar->setValue(focusRect.left()); 487 487 … … 490 490 else if (focusRect.bottom() > visibleRect.bottom()) 491 491 d->vbar->setValue(focusRect.bottom() - d->viewport->height()); 492 else 492 else if (focusRect.top() < visibleRect.top()) 493 493 d->vbar->setValue(focusRect.top()); 494 494 }
Note:
See TracChangeset
for help on using the changeset viewer.