Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.