diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-23 08:24:06 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-23 08:37:47 (GMT) |
commit | be08fbc13f7370b6cc0c34660b4d1c16e4fdd3f5 (patch) | |
tree | 667ad95bc68c4a5423179672741152d758a0a6b3 /src/gui/kernel/qwindowsysteminterface_qpa_p.h | |
parent | d15e6a32aeced893a5b5b790f3235cc7b3e0b9af (diff) | |
download | Qt-be08fbc13f7370b6cc0c34660b4d1c16e4fdd3f5.zip Qt-be08fbc13f7370b6cc0c34660b4d1c16e4fdd3f5.tar.gz Qt-be08fbc13f7370b6cc0c34660b4d1c16e4fdd3f5.tar.bz2 |
Handle behavior change in resize and move events in Lighthouse
Dont post the resize event and move event seperatly on the
windowsystemintegration event queue, but as one event which will be
processed in one go.
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_qpa_p.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa_p.h b/src/gui/kernel/qwindowsysteminterface_qpa_p.h index 90d1702..5f3ac5d 100644 --- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h +++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h @@ -53,8 +53,7 @@ public: enum EventType { Close, - Resize, - Move, + GeometryChange, Enter, Leave, Mouse, @@ -80,22 +79,13 @@ public: QWeakPointer<QWidget> topLevel; }; - class ResizeEvent : public WindowSystemEvent { + class GeometryChangeEvent : public WindowSystemEvent { public: - ResizeEvent(QWidget *sizeChanged, const QSize &newSize) - : WindowSystemEvent(Resize), sizeChanged(sizeChanged), newSize(newSize) + GeometryChangeEvent(QWidget *tlw, const QRect &newGeometry) + : WindowSystemEvent(GeometryChange), tlw(tlw), newGeometry(newGeometry) { } - QWeakPointer<QWidget> sizeChanged; - QSize newSize; - }; - - class MoveEvent : public WindowSystemEvent { - public: - MoveEvent(QWidget *moved, const QPoint &newPos) - : WindowSystemEvent(Move), moved(moved), newPos(newPos) - { } - QWeakPointer<QWidget> moved; - QPoint newPos; + QWeakPointer<QWidget> tlw; + QRect newGeometry; }; class EnterEvent : public WindowSystemEvent { |