summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreevent.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-10-07 16:56:23 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-10-09 07:10:20 (GMT)
commita8e2a457bb7d2fc377c1c65b6a4172974919e055 (patch)
treeb7d52a0bc06c4b098ec36125d623deccd6c7e373 /src/corelib/kernel/qcoreevent.cpp
parent9371ae3ff036a622f578023377cfcacbc733b804 (diff)
downloadQt-a8e2a457bb7d2fc377c1c65b6a4172974919e055.zip
Qt-a8e2a457bb7d2fc377c1c65b6a4172974919e055.tar.gz
Qt-a8e2a457bb7d2fc377c1c65b6a4172974919e055.tar.bz2
Added a new event type, WinIdChange.
This is sent to a native widget when its window system identifer has changed. This is motivated by the fact that, on Symbian, the native window system identifier may change in situations other than a change of parent widget. Specifically, calling QWidget::setParent, passing in the widget's existing parent, but OR-in Qt::Window into the window flags, causes a new native window handle to be created. Furthermore, because of the fact that Symbian does not allow existing windows to be reparented, any descendents of the original widget which are also native, must also be given new window system handles. Note that setWinId does not send a WinIdChange event if the incoming winId is zero. This is because setWinId(0) is only called in two situations: 1. During native widget destruction 2. During re-creation of the winId for a native widget Task-number: QTBUG-4664 Reviewed-by: Bjoern Erik Nilsen
Diffstat (limited to 'src/corelib/kernel/qcoreevent.cpp')
-rw-r--r--src/corelib/kernel/qcoreevent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreevent.cpp b/src/corelib/kernel/qcoreevent.cpp
index 744e6a9..44a354b 100644
--- a/src/corelib/kernel/qcoreevent.cpp
+++ b/src/corelib/kernel/qcoreevent.cpp
@@ -228,6 +228,7 @@ QT_BEGIN_NAMESPACE
\value TouchBegin Beginning of a sequence of touch-screen and/or track-pad events (QTouchEvent)
\value TouchUpdate Touch-screen event (QTouchEvent)
\value TouchEnd End of touch-event sequence (QTouchEvent)
+ \value WinIdChange The window system identifer for this native widget has changed
User events should have values between \c User and \c{MaxUser}: