From 89294d04e2e417289198762211bd5f789c3eefc6 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Fri, 2 Aug 2013 13:57:48 +0200 Subject: Specify valid values for QScrollArea::setAlignment() Change-Id: If0c19d83d97fd218fc79f44421e16ca362964e8f Reviewed-by: Jerome Pasion --- src/widgets/widgets/qscrollarea.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/widgets/widgets/qscrollarea.cpp') 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. */ -- cgit v1.2.3