summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjian liang <jianliang79@gmail.com>2012-01-27 21:08:53 +0800
committerQt by Nokia <qt-info@nokia.com>2012-01-31 21:48:23 +0100
commit4ab6860172e14b0047e56ab778decafed797afae (patch)
tree498cbc2489f6627a81d203c082fcd2ec4c9c5f27 /src
parenta5201007f255a07f7ba07981745eeaec41a14a34 (diff)
add virtual destructor to QWindowSystemInterfacePrivate::WindowSystemEvent
Add a virtual destructor to QWindowSystemInterfacePrivate::WindowSystemEvent class. Otherwise, in QWindowSystemInterface::sendWindowSystemEvents() "delete event" can't destruct the subclass of WindowSystemEvent properly. Change-Id: Ic708f4ab61de88cd0015aa6e472d356b2de64583 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa_p.h b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
index 6d378b3877..0bd9ba017a 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h
+++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
@@ -73,6 +73,7 @@ public:
public:
explicit WindowSystemEvent(EventType t)
: type(t), synthetic(false) { }
+ virtual ~WindowSystemEvent() { }
EventType type;
bool synthetic;
};