diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-12-06 16:13:34 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-04 15:18:19 +0100 |
commit | 3753b15e88f2c8220b887f27be79491c4135a291 (patch) | |
tree | 9d8ceb094637b4270d61a57384a854e1d26d81d8 /src/gui/kernel/qwindowsysteminterface_qpa_p.h | |
parent | fc013b7be66a6d4fc13af8bd38b7e679ed3998af (diff) |
Added window focus handling to lighthouse
The idea is that QPlatformWindows can request focus handling. And when
actual focus shifting is done by windowsystem callbacks/events which are
sent to QWindowSystemInterface
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_qpa_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa_p.h b/src/gui/kernel/qwindowsysteminterface_qpa_p.h index 78e1f33339..3491a1ae1e 100644 --- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h +++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h @@ -54,6 +54,7 @@ public: GeometryChange, Enter, Leave, + ActivatedWindow, Mouse, Wheel, Key, @@ -102,6 +103,14 @@ public: QWeakPointer<QWidget> leave; }; + class ActivatedWindowEvent : public WindowSystemEvent { + public: + ActivatedWindowEvent(QWidget *activatedWindow) + : WindowSystemEvent(ActivatedWindow), activated(activatedWindow) + { } + QWeakPointer<QWidget> activated; + }; + class UserEvent : public WindowSystemEvent { public: UserEvent(QWidget * w, ulong time, EventType t) |