summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qscrollarea.cpp
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2013-08-02 13:57:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 14:56:04 +0200
commit89294d04e2e417289198762211bd5f789c3eefc6 (patch)
treea5ef5e059aeb36ddad96df4b79c266a7326c1a50 /src/widgets/widgets/qscrollarea.cpp
parentb449791c3565940e701c68b3f705014804af0c2b (diff)
Specify valid values for QScrollArea::setAlignment()
Change-Id: If0c19d83d97fd218fc79f44421e16ca362964e8f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/widgets/widgets/qscrollarea.cpp')
-rw-r--r--src/widgets/widgets/qscrollarea.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/widgets/qscrollarea.cpp b/src/widgets/widgets/qscrollarea.cpp
index 2a6d4620d7..71c0b987a4 100644
--- a/src/widgets/widgets/qscrollarea.cpp
+++ b/src/widgets/widgets/qscrollarea.cpp
@@ -511,6 +511,15 @@ void QScrollArea::ensureWidgetVisible(QWidget *childWidget, int xmargin, int yma
\brief the alignment of the scroll area's widget
\since 4.2
+ A valid alignment is a combination of the following flags:
+ \list
+ \li \c Qt::AlignLeft
+ \li \c Qt::AlignHCenter
+ \li \c Qt::AlignRight
+ \li \c Qt::AlignTop
+ \li \c Qt::AlignVCenter
+ \li \c Qt::AlignBottom
+ \endlist
By default, the widget stays rooted to the top-left corner of the
scroll area.
*/