Cummings, Thompson qualify for Open