QinetiQ shares lost all their gains this year after a profit warning.