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>
This commit is contained in:
jian liang 2012-01-27 21:08:53 +08:00 committed by Qt by Nokia
parent a5201007f2
commit 4ab6860172

View File

@ -73,6 +73,7 @@ public:
public:
explicit WindowSystemEvent(EventType t)
: type(t), synthetic(false) { }
virtual ~WindowSystemEvent() { }
EventType type;
bool synthetic;
};