Doc: Fixed page step sizes in a snippet for QAbstractScrollArea.
Task-number: QTBUG-20350 (cherry picked from commit df244b77b3a5370db071cd1a08f9e24c8cd78803) Change-Id: Idce02f2f417d8e897d96372f78812e9cef0d79b0 Reviewed-on: http://codereview.qt-project.org/1986 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Peter Yard <peter.yard@nokia.com>
This commit is contained in:
parent
72aeb207c5
commit
99324802de
@ -98,8 +98,8 @@ void MyScrollArea::updateArea()
|
||||
QSize areaSize = viewport()->size();
|
||||
QSize widgetSize = widget->size();
|
||||
|
||||
verticalScrollBar()->setPageStep(widgetSize.height());
|
||||
horizontalScrollBar()->setPageStep(widgetSize.width());
|
||||
verticalScrollBar()->setPageStep(areaSize.height());
|
||||
horizontalScrollBar()->setPageStep(areaSize.width());
|
||||
verticalScrollBar()->setRange(0, widgetSize.height() - areaSize.height());
|
||||
horizontalScrollBar()->setRange(0, widgetSize.width() - areaSize.width());
|
||||
updateWidgetPosition();
|
||||
|
Loading…
Reference in New Issue
Block a user