The Queen has been photographed beaming as she attended an armed forces act of loyalty parade in Edinburgh today.