summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-07-18 14:30:23 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-07-18 14:30:23 (GMT)
commitdf244b77b3a5370db071cd1a08f9e24c8cd78803 (patch)
treed9800d833f957b9ba8cd3ba8e9765a3e3436b8e2
parentb3922d06680c04324cecd0e0219d02c52b8cf7fd (diff)
downloadQt-df244b77b3a5370db071cd1a08f9e24c8cd78803.zip
Qt-df244b77b3a5370db071cd1a08f9e24c8cd78803.tar.gz
Qt-df244b77b3a5370db071cd1a08f9e24c8cd78803.tar.bz2
Doc: Fixed page step sizes in a snippet for QAbstractScrollArea.
Task-number: QTBUG-20350
-rw-r--r--doc/src/snippets/myscrollarea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/myscrollarea.cpp b/doc/src/snippets/myscrollarea.cpp
index 93b487d..9a41ed8 100644
--- a/doc/src/snippets/myscrollarea.cpp
+++ b/doc/src/snippets/myscrollarea.cpp
@@ -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();