Garrison cap
A garrison hat was a type of military hat, designed to fold flat when not worn, worn on Earth during the late 20th century.

During one of Q's appearances on the bridge of the  in 2364, he appeared wearing a late mid-20th century USMC service uniform, complete with garrison cap. ()

External link 
 

Clothing