diff options
author | Martin Smith <msmith@trolltech.com> | 2009-11-17 14:08:29 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-11-17 14:25:29 (GMT) |
commit | 798ff84b2bd26da5ba2d01bf44e4a4d40dfcacac (patch) | |
tree | 703744bd131bacd13cb41329014e9470f9c3e2f8 /src/gui/kernel | |
parent | 1e6b424b692b20dcfec920f8d3563e520ec1ff05 (diff) | |
download | Qt-798ff84b2bd26da5ba2d01bf44e4a4d40dfcacac.zip Qt-798ff84b2bd26da5ba2d01bf44e4a4d40dfcacac.tar.gz Qt-798ff84b2bd26da5ba2d01bf44e4a4d40dfcacac.tar.bz2 |
doc: Clarified function of setLayoutDirection()
Task-number: QTBUG-5432
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 0d8da0c..754e7f5 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -4677,8 +4677,10 @@ void QWidgetPrivate::resolveLayoutDirection() By default, this property is set to Qt::LeftToRight. When the layout direction is set on a widget, it will propagate to - the widget's children. Children added after the call to \c - setLayoutDirection() will not inherit the parent's layout + the widget's children, but not to a child that is a window and not + to a child for which setLayoutDirection() has been explicitly + called. Also, child widgets added \e after setLayoutDirection() + has been called for the parent do not inherit the parent's layout direction. \sa QApplication::layoutDirection |