summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@trolltech.com>2009-09-01 11:31:10 (GMT)
committerGeir Vattekar <geir.vattekar@trolltech.com>2009-09-01 11:31:10 (GMT)
commit4f19cd391aa32b12b9f749af06ebe6836cd0cbae (patch)
treeff520b1724545e6b826f8b79a847c8e295f52af0 /src/gui/kernel/qwidget.cpp
parentc78c520bde91c08cedc6f7cc5c943998155f078e (diff)
downloadQt-4f19cd391aa32b12b9f749af06ebe6836cd0cbae.zip
Qt-4f19cd391aa32b12b9f749af06ebe6836cd0cbae.tar.gz
Qt-4f19cd391aa32b12b9f749af06ebe6836cd0cbae.tar.bz2
Doc: Said what happens when setFocus() is called on a widget in an
inactive window. Task-number: 78707 Reviewed-by: Morten Engvoldsen
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 37ffa8fb..863c43e 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -5962,6 +5962,8 @@ bool QWidget::hasFocus() const
isActiveWindow() active window\endlink. The \a reason argument will
be passed into any focus event sent from this function, it is used
to give an explanation of what caused the widget to get focus.
+ If the window is not active, the widget will be given the focus when
+ the window becomes active.
First, a focus out event is sent to the focus widget (if any) to
tell it that it is about to lose the focus. Then a focus in event